Package io.grpc
Class StatusRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.grpc.StatusRuntimeException
- All Implemented Interfaces:
Serializable
Status
in RuntimeException form, for propagating Status information via exceptions.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStatusRuntimeException
(Status status) Constructs the exception with a status.StatusRuntimeException
(Status status, Metadata trailers) Constructs the exception with both a status and trailers. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
StatusRuntimeException
Constructs the exception with a status. See alsoStatus.asRuntimeException()
.- Since:
- 1.0.0
-
StatusRuntimeException
Constructs the exception with both a status and trailers. See alsoStatus.asRuntimeException(Metadata)
.- Since:
- 1.0.0
-
-
Method Details
-
getStatus
Returns the status code as aStatus
object.- Since:
- 1.0.0
-
getTrailers
Returns the received trailers.- Since:
- 1.0.0
-