Package io.grpc
Class InternalStatus
java.lang.Object
io.grpc.InternalStatus
Accesses internal data. Do not use this.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Metadata.Key
<Status> Key to bind status code to trailing metadata.static final Metadata.Key
<String> Key to bind status message to trailing metadata. -
Method Summary
Modifier and TypeMethodDescriptionstatic final StatusRuntimeException
asRuntimeException
(Status status, Metadata trailers, boolean fillInStackTrace) Create a newStatusRuntimeException
with the internal option of skipping the filling of the stack trace.
-
Field Details
-
MESSAGE_KEY
Key to bind status message to trailing metadata. -
CODE_KEY
Key to bind status code to trailing metadata.
-
-
Method Details
-
asRuntimeException
@Internal public static final StatusRuntimeException asRuntimeException(Status status, @Nullable Metadata trailers, boolean fillInStackTrace) Create a newStatusRuntimeException
with the internal option of skipping the filling of the stack trace.
-