Sdílet prostřednictvím


JsonRpc.CreateExceptionFromRpcError(JsonRpcRequest, JsonRpcError) Metoda

Definice

RemoteRpcException Vytvoří (nebo odvozený typ), který představuje data nalezená v chybové odpovědi JSON-RPC. Volá se na straně klienta, aby se vytvořila výjimka, která bude vyvolána zpět klientovi RPC.

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

Parametry

request
JsonRpcRequest

Požadavek JSON-RPC, který tuto chybu vytvořil.

response
JsonRpcError

Odpověď na chybu JSON-RPC.

Návraty

Instance RemoteRpcException.

Platí pro

Viz také