Enum JsonRpcErrorCode
- Namespace
- StreamJsonRpc.Protocol
- Assembly
- StreamJsonRpc.dll
Error codes laid out in the JSON-RPC spec or this library.
public enum JsonRpcErrorCode
Fields
InternalError = -32603
Internal JSON-RPC error.
InvalidParams = -32602
Invalid method parameter(s).
InvalidRequest = -32600
The JSON sent is not a valid Request object.
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.
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.
MethodNotFound = -32601
The method does not exist / is not available.
NoMarshaledObjectFound = -32001
Indicates a request was made to a remotely marshaled object that never existed or has already been disposed of.
ParseError = -32700
Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.
RequestCanceled = -32800
Execution of the server method was aborted due to a cancellation request from the client.
ResponseSerializationFailure = -32003
Indicates a response could not be serialized as the application intended.
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.