- java.lang.Object
-
- java.lang.Enum<ErrorCategory>
-
- io.axoniq.axonserver.connector.ErrorCategory
-
- All Implemented Interfaces:
Serializable,Comparable<ErrorCategory>
public enum ErrorCategory extends Enum<ErrorCategory>
Converts an Axon Server Error to the relevant Axon framework exception.- Since:
- 4.0
- Author:
- Marc Gathier
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringerrorCode()static ErrorCategorygetFromCode(String code)static ErrorCategoryvalueOf(String name)Returns the enum constant of this type with the specified name.static ErrorCategory[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTHENTICATION_TOKEN_MISSING
public static final ErrorCategory AUTHENTICATION_TOKEN_MISSING
-
AUTHENTICATION_INVALID_TOKEN
public static final ErrorCategory AUTHENTICATION_INVALID_TOKEN
-
UNSUPPORTED_INSTRUCTION
public static final ErrorCategory UNSUPPORTED_INSTRUCTION
-
INSTRUCTION_ACK_ERROR
public static final ErrorCategory INSTRUCTION_ACK_ERROR
-
INSTRUCTION_EXECUTION_ERROR
public static final ErrorCategory INSTRUCTION_EXECUTION_ERROR
-
INVALID_EVENT_SEQUENCE
public static final ErrorCategory INVALID_EVENT_SEQUENCE
-
NO_EVENT_STORE_MASTER_AVAILABLE
public static final ErrorCategory NO_EVENT_STORE_MASTER_AVAILABLE
-
EVENT_PAYLOAD_TOO_LARGE
public static final ErrorCategory EVENT_PAYLOAD_TOO_LARGE
-
CONNECTION_FAILED
public static final ErrorCategory CONNECTION_FAILED
-
GRPC_MESSAGE_TOO_LARGE
public static final ErrorCategory GRPC_MESSAGE_TOO_LARGE
-
NO_HANDLER_FOR_COMMAND
public static final ErrorCategory NO_HANDLER_FOR_COMMAND
-
COMMAND_EXECUTION_ERROR
public static final ErrorCategory COMMAND_EXECUTION_ERROR
-
COMMAND_DISPATCH_ERROR
public static final ErrorCategory COMMAND_DISPATCH_ERROR
-
CONCURRENCY_EXCEPTION
public static final ErrorCategory CONCURRENCY_EXCEPTION
-
NO_HANDLER_FOR_QUERY
public static final ErrorCategory NO_HANDLER_FOR_QUERY
-
QUERY_EXECUTION_ERROR
public static final ErrorCategory QUERY_EXECUTION_ERROR
-
QUERY_DISPATCH_ERROR
public static final ErrorCategory QUERY_DISPATCH_ERROR
-
DATAFILE_READ_ERROR
public static final ErrorCategory DATAFILE_READ_ERROR
-
INDEX_READ_ERROR
public static final ErrorCategory INDEX_READ_ERROR
-
DATAFILE_WRITE_ERROR
public static final ErrorCategory DATAFILE_WRITE_ERROR
-
INDEX_WRITE_ERROR
public static final ErrorCategory INDEX_WRITE_ERROR
-
DIRECTORY_CREATION_FAILED
public static final ErrorCategory DIRECTORY_CREATION_FAILED
-
VALIDATION_FAILED
public static final ErrorCategory VALIDATION_FAILED
-
TRANSACTION_ROLLED_BACK
public static final ErrorCategory TRANSACTION_ROLLED_BACK
-
OTHER
public static final ErrorCategory OTHER
-
-
Method Detail
-
values
public static ErrorCategory[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ErrorCategory c : ErrorCategory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ErrorCategory valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getFromCode
public static ErrorCategory getFromCode(String code)
-
errorCode
public String errorCode()
-
-