JsonRpc.CreateErrorDetails(JsonRpcRequest, Exception) 메서드

정의

JsonRpcError.ErrorDetail 로컬로 호출된 RPC 메서드에서 throw되는 예외에 대한 응답으로 클라이언트로 다시 보낼 오류 속성의 값으로 사용할 값을 만듭니다.

protected virtual StreamJsonRpc.Protocol.JsonRpcError.ErrorDetail CreateErrorDetails (StreamJsonRpc.Protocol.JsonRpcRequest request, Exception exception);
abstract member CreateErrorDetails : StreamJsonRpc.Protocol.JsonRpcRequest * Exception -> StreamJsonRpc.Protocol.JsonRpcError.ErrorDetail
override this.CreateErrorDetails : StreamJsonRpc.Protocol.JsonRpcRequest * Exception -> StreamJsonRpc.Protocol.JsonRpcError.ErrorDetail
Protected Overridable Function CreateErrorDetails (request As JsonRpcRequest, exception As Exception) As JsonRpcError.ErrorDetail

매개 변수

request
JsonRpcRequest

호출로 이어진 요청으로 인해 실패했습니다.

exception
Exception

RPC 메서드에서 throw된 예외입니다.

반환

클라이언트로 돌아갈 오류 세부 정보입니다. null이 아니어야 합니다.

설명

이 메서드는 오류 세부 정보가 표현되는 방식을 변경하기 위해 파생 클래스에서 재정의될 수 있습니다.

적용 대상

추가 정보