const classafJsonRpc::JsonRpcErr

sys::Obj
  sys::Err
    afJsonRpc::JsonRpcErr

Represents an error when calling RPC.

Errors thrown by the endpoints result in an JsonRpcErr with a code of applicationError.

applicationError

Source

const static Int applicationError := -32500

code

Source

const Int code

A Number that indicates the error type that occurred.

data

Source

const Obj? data

A Primitive or Structured value that contains additional information about the error.

internalError

Source

const static Int internalError := -32603

invalidParams

Source

const static Int invalidParams := -32602

invalidRequest

Source

const static Int invalidRequest := -32600

make

Source

new make(Int code, Str msg, Obj? dataOrCause := null)

methodNotFound

Source

const static Int methodNotFound := -32601

parseError

Source

const static Int parseError := -32700