Status in Exception form, for propagating Status information via exceptions. This is
semantically equivalent to StatusRuntimeException, except for usage in APIs that promote
checked exceptions. gRPC's stubs favor StatusRuntimeException.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private static final long | |
| private final Status | |
| private final Metadata |
| Access | Constructor and Description |
|---|---|
| public | |
| public | StatusException(Status status, Metadata trailers)
Constructs an exception with both a status and trailers. |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized Throwable | fillInStackTrace()
Overrides java. |
| public final Status | |
| public final Metadata |
| fillInStackTrace | back to summary |
|---|---|
| private final boolean fillInStackTrace | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| status | back to summary |
|---|---|
| private final Status status | |
| trailers | back to summary |
|---|---|
| private final Metadata trailers | |
| StatusException | back to summary |
|---|---|
| public StatusException(Status status) Constructs an exception with both a status. See also
| |
| StatusException | back to summary |
|---|---|
| public StatusException(Status status, Metadata trailers) Constructs an exception with both a status and trailers. See also
| |
| StatusException | back to summary |
|---|---|
| pack-priv StatusException(Status status, Metadata trailers, boolean fillInStackTrace) | |
| fillInStackTrace | back to summary |
|---|---|
| public synchronized Throwable fillInStackTrace() Overrides java. Doc from java. Fills in the execution stack trace. This method records within this
If the stack trace of this | |
| getStatus | back to summary |
|---|---|
| public final Status getStatus() Returns the status code as a
| |
| getTrailers | back to summary |
|---|---|
| public final Metadata getTrailers() Returns the received trailers.
| |