Package com.linecorp.armeria.common.grpc
Class StatusCauseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.linecorp.armeria.common.grpc.StatusCauseException
- All Implemented Interfaces:
Serializable
public final class StatusCauseException extends RuntimeException
A
RuntimeException
reconstructed from debug information in a failed gRPC
response, containing information about the cause of the exception at the server
side.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description StatusCauseException(ThrowableProto proto)
Constructs aStatusCauseException
from the information in theThrowableProto
. -
Method Summary
Modifier and Type Method Description Throwable
fillInStackTrace()
String
getOriginalClassName()
Returns the class name of the original exception in the server.String
getOriginalMessage()
Returns the message attached to the original exception in the server.Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
StatusCauseException
Constructs aStatusCauseException
from the information in theThrowableProto
.
-
-
Method Details
-
getOriginalClassName
Returns the class name of the original exception in the server. -
getOriginalMessage
Returns the message attached to the original exception in the server. -
fillInStackTrace
- Overrides:
fillInStackTrace
in classThrowable
-