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
public class ArmeriaStatusException extends RuntimeException
AnExceptionthat contains enough information to convert it to a gRPC status.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static longserialVersionUID
-
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
All Methods Instance Methods Concrete Methods 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
-
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ArmeriaStatusException
public ArmeriaStatusException(int code, @Nullable String message)Constructs anArmeriaStatusExceptionfor the given gRPC status code and message.
-
ArmeriaStatusException
public ArmeriaStatusException(int code, @Nullable String message, @Nullable Throwable cause)Constructs anArmeriaStatusExceptionfor the given gRPC status code, message and cause.
-
-
Method Detail
-
getCode
public int getCode()
Returns the gRPC status code for thisArmeriaStatusException.
-
-