Class JsonRpcException
- Namespace
- Kuestenlogik.Bowire.Protocol.JsonRpc
- Assembly
- Kuestenlogik.Bowire.Protocol.JsonRpc.dll
Thrown when a JSON-RPC call surfaces an error envelope
(well-formed JSON-RPC reply with a numeric code and a
message). Also wraps malformed-envelope and non-JSON-body
situations with synthetic codes from the spec's reserved range
(-32700 parse error, -32603 internal).
public sealed class JsonRpcException : Exception, ISerializable
- Inheritance
-
JsonRpcException
- Implements
- Inherited Members
Constructors
JsonRpcException()
public JsonRpcException()
JsonRpcException(int, string, JsonElement?)
public JsonRpcException(int code, string message, JsonElement? data)
Parameters
codeintmessagestringdataJsonElement?
JsonRpcException(string)
public JsonRpcException(string message)
Parameters
messagestring
JsonRpcException(string, Exception)
public JsonRpcException(string message, Exception innerException)
Parameters
Properties
Code
public int Code { get; }
Property Value
RpcData
public JsonElement? RpcData { get; }