Class ArmeriaStatusException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.linecorp.armeria.common.grpc.protocol.ArmeriaStatusException
- All Implemented Interfaces:
Serializable
@UnstableApi public final class ArmeriaStatusException extends RuntimeException
An
Exception that contains enough information to convert it to a gRPC status.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ArmeriaStatusException(int code, String message)Constructs anArmeriaStatusExceptionfor the given gRPC status code and message.ArmeriaStatusException(int code, String message, Throwable cause)Constructs anArmeriaStatusExceptionfor the given gRPC status code, message and cause. -
Method Summary
Modifier and Type Method Description intgetCode()Returns the gRPC status code for thisArmeriaStatusException.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ArmeriaStatusException
Constructs anArmeriaStatusExceptionfor the given gRPC status code and message. -
ArmeriaStatusException
Constructs anArmeriaStatusExceptionfor the given gRPC status code, message and cause.
-
-
Method Details
-
getCode
public int getCode()Returns the gRPC status code for thisArmeriaStatusException.
-