Enum Class ErrorCode
- All Implemented Interfaces:
Serializable,Comparable<ErrorCode>,Constable
Converts an Axon Server Error to the relevant Axon framework exception.
- Since:
- 4.0
- Author:
- Marc Gathier
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionReturns the Axon Server code.static ErrorCodegetCommandExecutionErrorCode(Throwable throwable) Returns an Command Execution ErrorCode variation based on the transiency of the givenThrowablestatic ErrorCodegetFromCode(String code) Converts the given code to anErrorCodeenum value.static ErrorCodegetQueryExecutionErrorCode(Throwable throwable) Returns a Query Execution ErrorCode variation based on the transiency of the givenThrowablestatic ErrorCodeReturns the enum constant of this class with the specified name.static ErrorCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTHENTICATION_TOKEN_MISSING
-
AUTHENTICATION_INVALID_TOKEN
-
UNSUPPORTED_INSTRUCTION
-
INSTRUCTION_ACK_ERROR
-
INSTRUCTION_EXECUTION_ERROR
-
INVALID_EVENT_SEQUENCE
-
NO_EVENT_STORE_MASTER_AVAILABLE
-
EVENT_PAYLOAD_TOO_LARGE
-
CONNECTION_FAILED
-
GRPC_MESSAGE_TOO_LARGE
-
NO_HANDLER_FOR_COMMAND
-
COMMAND_EXECUTION_ERROR
-
COMMAND_DISPATCH_ERROR
-
CONCURRENCY_EXCEPTION
-
COMMAND_EXECUTION_NON_TRANSIENT_ERROR
-
NO_HANDLER_FOR_QUERY
-
QUERY_EXECUTION_ERROR
-
QUERY_DISPATCH_ERROR
-
QUERY_EXECUTION_NON_TRANSIENT_ERROR
-
DATAFILE_READ_ERROR
-
INDEX_READ_ERROR
-
DATAFILE_WRITE_ERROR
-
INDEX_WRITE_ERROR
-
DIRECTORY_CREATION_FAILED
-
VALIDATION_FAILED
-
TRANSACTION_ROLLED_BACK
-
OTHER
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getFromCode
-
errorCode
Returns the Axon Server code.- Returns:
- the Axon Server code, never
null
-
getQueryExecutionErrorCode
Returns a Query Execution ErrorCode variation based on the transiency of the givenThrowable -
getCommandExecutionErrorCode
Returns an Command Execution ErrorCode variation based on the transiency of the givenThrowable
-