Share via


JsonRpcErrorCode Enum

Definition

Error codes laid out in the JSON-RPC spec or this library.

public enum JsonRpcErrorCode
type JsonRpcErrorCode = 
Public Enum JsonRpcErrorCode
Inheritance
JsonRpcErrorCode

Fields

Name Value Description
RequestCanceled -32800

Execution of the server method was aborted due to a cancellation request from the client.

ParseError -32700

Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.

InternalError -32603

Internal JSON-RPC error.

InvalidParams -32602

Invalid method parameter(s).

MethodNotFound -32601

The method does not exist / is not available.

InvalidRequest -32600

The JSON sent is not a valid Request object.

InvocationErrorWithException -32004

Indicates the RPC call was made but the target threw an exception. The Data included in the Error should be interpreted as an Exception serialized via ISerializable.

ResponseSerializationFailure -32003

Indicates a response could not be serialized as the application intended.

NoMarshaledObjectFound -32001

Indicates a request was made to a remotely marshaled object that never existed or has already been disposed of.

InvocationError -32000

Indicates the RPC call was made but the target threw an exception. The Data included in the Error is likely to be CommonErrorData.

Remarks

Per the spec, the error codes from and including -32768 to -32000 are reserved for pre-defined errors. The range from -32000 to -32099 is "Reserved for implementation-defined server-errors", so we define whatever new we need for StreamJsonRpc.

Applies to