Class GRpcExceptionScope
- java.lang.Object
-
- org.lognet.springboot.grpc.recovery.GRpcExceptionScope
-
public class GRpcExceptionScope extends java.lang.ObjectContainer object that provides exception-specific attributes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGRpcExceptionScope.GRpcExceptionScopeBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GRpcExceptionScope.GRpcExceptionScopeBuilderbuilder()io.grpc.MetadatagetCallHeaders()java.lang.ObjectgetHint()<T> java.util.Optional<T>getHintAs(java.lang.Class<T> clazz)io.grpc.AttributesgetMethodCallAttributes()io.grpc.MethodDescriptor<?,?>getMethodDescriptor()java.lang.ObjectgetRequest()java.lang.ObjectgetRequestOrResponse()java.lang.ObjectgetResponse()io.grpc.MetadatagetResponseHeaders()headers to send to the client
-
-
-
Method Detail
-
getRequestOrResponse
public java.lang.Object getRequestOrResponse()
-
getHintAs
public <T> java.util.Optional<T> getHintAs(java.lang.Class<T> clazz)
-
builder
public static GRpcExceptionScope.GRpcExceptionScopeBuilder builder()
-
getMethodDescriptor
public io.grpc.MethodDescriptor<?,?> getMethodDescriptor()
-
getMethodCallAttributes
public io.grpc.Attributes getMethodCallAttributes()
-
getCallHeaders
public io.grpc.Metadata getCallHeaders()
-
getRequest
public java.lang.Object getRequest()
-
getResponse
public java.lang.Object getResponse()
-
getHint
public java.lang.Object getHint()
-
getResponseHeaders
public io.grpc.Metadata getResponseHeaders()
headers to send to the client
-
-