Enum Class ErrorCode
- All Implemented Interfaces:
Serializable,Comparable<ErrorCode>,java.lang.constant.Constable
Error codes for UltiTools exceptions.
Each error code belongs to a category and has a unique numeric code.
- Since:
- 6.2.0
- Author:
- wisdomme
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetCode()Gets the numeric error code.Gets the default error message.Gets the full error code string (e.g., "ULTI-3001").static 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
-
UNKNOWN_ERROR
-
INVALID_ARGUMENT
-
NULL_POINTER
-
ILLEGAL_STATE
-
BEAN_CREATION_FAILED
-
BEAN_NOT_FOUND
-
CIRCULAR_DEPENDENCY
-
DEPENDENCY_INJECTION_FAILED
-
DUPLICATE_BEAN
-
DATA_ACCESS_ERROR
-
ENTITY_NOT_FOUND
-
DATA_PERSISTENCE_FAILED
-
DATA_QUERY_FAILED
-
DATA_INTEGRITY_VIOLATION
-
CONNECTION_FAILED
-
TRANSACTION_FAILED
-
DATA_ENTITY_INVALID
-
DATA_OPERATION_FAILED
-
COMMAND_ERROR
-
COMMAND_VALIDATION_FAILED
-
COMMAND_PERMISSION_DENIED
-
COMMAND_COOLDOWN_ACTIVE
-
COMMAND_PARSE_ERROR
-
COMMAND_EXECUTION_FAILED
-
CONFIG_ERROR
-
CONFIG_LOAD_FAILED
-
CONFIG_SAVE_FAILED
-
CONFIG_PARSE_FAILED
-
CONFIG_VALIDATION_FAILED
-
PLUGIN_ERROR
-
PLUGIN_LOAD_FAILED
-
PLUGIN_UNLOAD_FAILED
-
PLUGIN_DEPENDENCY_ERROR
-
PLUGIN_CIRCULAR_DEPENDENCY
-
WEBSOCKET_ERROR
-
WEBSOCKET_CONNECTION_FAILED
-
WEBSOCKET_MESSAGE_FAILED
-
-
Field Details
-
code
private final int code -
defaultMessage
-
-
Constructor Details
-
ErrorCode
-
-
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
-
getCode
public int getCode()Gets the numeric error code.- Returns:
- the error code
-
getDefaultMessage
Gets the default error message.- Returns:
- the default message
-
getFormattedCode
Gets the full error code string (e.g., "ULTI-3001").- Returns:
- the formatted error code
-