JsonRpc.CreateExceptionFromRpcError(JsonRpcRequest, JsonRpcError) 메서드

정의

RemoteRpcException JSON-RPC 오류 응답에 있는 데이터를 나타내는 (또는 파생된 형식)을 만듭니다. 이는 RPC 클라이언트에 다시 throw될 예외를 생성하기 위해 클라이언트 쪽에서 호출됩니다.

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

매개 변수

request
JsonRpcRequest

이 오류를 생성한 JSON-RPC 요청입니다.

response
JsonRpcError

JSON-RPC 오류 응답입니다.

반환

RemoteRpcException의 인스턴스입니다.

적용 대상

추가 정보