Skip to main content
torch.js has not been released yet.
torch.js logotorch.js logotorch.js
PlaygroundContact
Login
Documentation
IntroductionType SafetyTensor ExpressionsTensor IndexingEinsumEinopsAutogradTraining a ModelProfiling & MemoryPyTorch MigrationBest PracticesRuntimesPerformancePyTorch CompatibilityBenchmarksDType Coverage
torch.js· 2026
LegalTerms of UsePrivacy Policy
/
/
  1. docs
  2. Spark
  3. spark
  4. JsonRpcError

spark.JsonRpcError

export interface JsonRpcError {
  /** Error code (-32000 to -32099 for reserved errors) */
  code: number;
  /** Human-readable error message */
  message: string;
  /** Optional error details */
  data?: unknown;
}
code(number)
– Error code (-32000 to -32099 for reserved errors)
message(string)
– Human-readable error message
data(unknown)optional
– Optional error details

JSON-RPC 2.0 error object.

Indicates that a method call failed.

Previous
getLocalStorageInfo
Next
JsonRpcMessage