JsonRpc.CreateExceptionFromRpcError(JsonRpcRequest, JsonRpcError) Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Crea un RemoteRpcException oggetto (o un tipo derivato) che rappresenta i dati trovati in una risposta di errore JSON-RPC. Questa operazione viene chiamata sul lato client per generare l'eccezione che verrà generata di nuovo al client 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
Parametri
- request
- JsonRpcRequest
Richiesta JSON-RPC che ha generato questo errore.
- response
- JsonRpcError
Risposta di errore JSON-RPC.
Valori restituiti
Istanza di RemoteRpcException.