public enum RPCExceptionType extends Enum<RPCExceptionType>
| Enum Constant and Description |
|---|
APP_BAD_SEQUENCE_ID |
APP_INTERNAL_ERROR |
APP_INVALID_MESSAGE_TYPE |
APP_INVALID_PROTOCOL |
APP_INVALID_TRANSFORM |
APP_MISSING_RESULT |
APP_PROTOCOL_ERROR |
APP_UNKNOWN |
APP_UNKNOWN_METHOD |
APP_UNSUPPORTED_CLIENT_TYPE |
APP_WRONG_METHOD_NAME |
CUSTOMIZED_EXCEPTION
customized exception
eg, CustomizedException extends Exception{}
|
PROTO_BAD_VERSION |
PROTO_DEPTH_LIMIT |
PROTO_INVALID_DATA |
PROTO_NEGATIVE_SIZE |
PROTO_NOT_IMPLEMENTED |
PROTO_SIZE_LIMIT |
PROTO_UNKNOWN |
TRANS_ALREADY_OPEN |
TRANS_CORRUPTED_DATA |
TRANS_END_OF_FILE |
TRANS_NOT_OPEN |
TRANS_TIMED_OUT |
TRANS_UNKNOWN |
UNEXPECTED_EXCEPTION
this exception is thrown during execution, but not declared in the endpoint
this case is identified as a bug,
eg, runtime exception which is unchecked
https://docs.oracle.com/javase/8/docs/api/java/lang/RuntimeException.html
category might be application (currently set as Others),
however, need a clear definition for each category
|
| Modifier and Type | Field and Description |
|---|---|
RPCExceptionCategory |
category
a category for the exception
|
int |
intValue
a value for this exception
it could be used for identifying the exception
|
RPCType[] |
supportedRPC
an exception could exist in which RPC schemas,
eg, APP_INTERNAL_ERROR might be identified by thrift and gRPC with a specific exception
|
| Modifier and Type | Method and Description |
|---|---|
static RPCExceptionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RPCExceptionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RPCExceptionType CUSTOMIZED_EXCEPTION
public static final RPCExceptionType UNEXPECTED_EXCEPTION
public static final RPCExceptionType APP_BAD_SEQUENCE_ID
public static final RPCExceptionType APP_INTERNAL_ERROR
public static final RPCExceptionType APP_INVALID_MESSAGE_TYPE
public static final RPCExceptionType APP_INVALID_PROTOCOL
public static final RPCExceptionType APP_INVALID_TRANSFORM
public static final RPCExceptionType APP_MISSING_RESULT
public static final RPCExceptionType APP_PROTOCOL_ERROR
public static final RPCExceptionType APP_UNKNOWN
public static final RPCExceptionType APP_UNKNOWN_METHOD
public static final RPCExceptionType APP_UNSUPPORTED_CLIENT_TYPE
public static final RPCExceptionType APP_WRONG_METHOD_NAME
public static final RPCExceptionType TRANS_ALREADY_OPEN
public static final RPCExceptionType TRANS_CORRUPTED_DATA
public static final RPCExceptionType TRANS_END_OF_FILE
public static final RPCExceptionType TRANS_NOT_OPEN
public static final RPCExceptionType TRANS_TIMED_OUT
public static final RPCExceptionType TRANS_UNKNOWN
public static final RPCExceptionType PROTO_BAD_VERSION
public static final RPCExceptionType PROTO_DEPTH_LIMIT
public static final RPCExceptionType PROTO_INVALID_DATA
public static final RPCExceptionType PROTO_NEGATIVE_SIZE
public static final RPCExceptionType PROTO_NOT_IMPLEMENTED
public static final RPCExceptionType PROTO_SIZE_LIMIT
public static final RPCExceptionType PROTO_UNKNOWN
public final RPCType[] supportedRPC
public final RPCExceptionCategory category
public final int intValue
public static RPCExceptionType[] values()
for (RPCExceptionType c : RPCExceptionType.values()) System.out.println(c);
public static RPCExceptionType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2016–2024. All rights reserved.