JsonRpc.CreateExceptionFromRpcError(JsonRpcRequest, JsonRpcError) Method

Definition

Creates a RemoteRpcException (or derived type) that represents the data found in a JSON-RPC error response. This is called on the client side to produce the exception that will be thrown back to the RPC client.

protected virtual StreamJsonRpc.RemoteRpcException CreateExceptionFromRpcError (StreamJsonRpc.Protocol.JsonRpcRequest request, StreamJsonRpc.Protocol.JsonRpcError response);
abstract member CreateExceptionFromRpcError : StreamJsonRpc.Protocol.JsonRpcRequest * StreamJsonRpc.Protocol.JsonRpcError -> StreamJsonRpc.RemoteRpcException
override this.CreateExceptionFromRpcError : StreamJsonRpc.Protocol.JsonRpcRequest * StreamJsonRpc.Protocol.JsonRpcError -> StreamJsonRpc.RemoteRpcException
Protected Overridable Function CreateExceptionFromRpcError (request As JsonRpcRequest, response As JsonRpcError) As RemoteRpcException

Parameters

request
JsonRpcRequest

The JSON-RPC request that produced this error.

response
JsonRpcError

The JSON-RPC error response.

Returns

An instance of RemoteRpcException.

Applies to

See also