Package io.grpc
Class InternalStatus
- java.lang.Object
-
- io.grpc.InternalStatus
-
@Internal public final class InternalStatus extends java.lang.Object
Accesses internal data. Do not use this.
-
-
Field Summary
Fields Modifier and Type Field Description static Metadata.Key<Status>
CODE_KEY
Key to bind status code to trailing metadata.static Metadata.Key<java.lang.String>
MESSAGE_KEY
Key to bind status message to trailing metadata.
-
Constructor Summary
Constructors Modifier Constructor Description private
InternalStatus()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StatusRuntimeException
asRuntimeException(Status status, Metadata trailers, boolean fillInStackTrace)
Create a newStatusRuntimeException
with the internal option of skipping the filling of the stack trace.
-
-
-
Field Detail
-
MESSAGE_KEY
@Internal public static final Metadata.Key<java.lang.String> MESSAGE_KEY
Key to bind status message to trailing metadata.
-
CODE_KEY
@Internal public static final Metadata.Key<Status> CODE_KEY
Key to bind status code to trailing metadata.
-
-
Method Detail
-
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.
-
-