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

code int
message string
data JsonElement?

JsonRpcException(string)

public JsonRpcException(string message)

Parameters

message string

JsonRpcException(string, Exception)

public JsonRpcException(string message, Exception innerException)

Parameters

message string
innerException Exception

Properties

Code

public int Code { get; }

Property Value

int

RpcData

public JsonElement? RpcData { get; }

Property Value

JsonElement?