IntelligenceX
Class

JsonRpcException

Namespace IntelligenceX.Rpc
Assembly IntelligenceX
Base Exception
Implements
ISerializable
Modifiers sealed

Exception raised for JSON-RPC error responses.

Inheritance

  • Exception
  • JsonRpcException

Constructors

JsonRpcException 4 overloads
public JsonRpcException(JsonRpcError error) #

Initializes a new instance from a JSON-RPC error.

Parameters

error IntelligenceX.Rpc.JsonRpcError
The JSON-RPC error payload.
public JsonRpcException(String method, JsonRpcError error) #

Initializes a new instance from a JSON-RPC error and inner exception.

Parameters

error IntelligenceX.Rpc.JsonRpcError
The JSON-RPC error payload.
innerException System.Exception
The underlying exception.
JsonRpcException(System.String method, IntelligenceX.Rpc.JsonRpcError error) #

Initializes a new instance for a specific JSON-RPC method.

Parameters

method System.String
The method name.
error IntelligenceX.Rpc.JsonRpcError
The JSON-RPC error payload.
public JsonRpcException(String method, JsonRpcError error, Exception innerException) #

Initializes a new instance for a specific JSON-RPC method with an inner exception.

Parameters

method System.String
The method name.
error IntelligenceX.Rpc.JsonRpcError
The JSON-RPC error payload.
innerException System.Exception
The underlying exception.

Properties

public JsonRpcError Error { get; } #

Gets the JSON-RPC error payload.

public String Method { get; } #

Gets the JSON-RPC method name.

public String Hint { get; } #

Gets a human-readable hint for the error code when available.