public class StatusRuntimeException
extends java.lang.RuntimeException
Status in RuntimeException form, for propagating Status information via exceptions.StatusException,
Serialized Form| Constructor and Description |
|---|
StatusRuntimeException(Status status)
Constructs the exception with both a status.
|
StatusRuntimeException(Status status,
Metadata trailers)
Constructs the exception with both a status and trailers.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Throwable |
fillInStackTrace() |
Status |
getStatus()
Returns the status code as a
Status object. |
Metadata |
getTrailers()
Returns the received trailers.
|
public StatusRuntimeException(Status status)
Status.asException().public StatusRuntimeException(Status status, @Nullable Metadata trailers)
Status.asException(Metadata).public java.lang.Throwable fillInStackTrace()
fillInStackTrace in class java.lang.Throwable@Nullable public final Metadata getTrailers()