Enum Class SystemExceptionFactory.SystemErrors
java.lang.Object
java.lang.Enum<SystemExceptionFactory.SystemErrors>
com.lexmark.saperion.exceptions.mappings.SystemExceptionFactory.SystemErrors
- All Implemented Interfaces:
ExceptionMapping<com.lexmark.saperion.exceptions.system.SystemException>,Serializable,Comparable<SystemExceptionFactory.SystemErrors>,Constable
- Enclosing class:
- SystemExceptionFactory
public static enum SystemExceptionFactory.SystemErrors
extends Enum<SystemExceptionFactory.SystemErrors>
implements ExceptionMapping<com.lexmark.saperion.exceptions.system.SystemException>
System error defintions.
- Author:
- owaeldrich
-
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 TypeMethodDescriptioncom.lexmark.saperion.exceptions.system.SystemExceptioncreateException(com.lexmark.saperion.exceptions.ErrorType fault, Throwable cause) Creates a new exception for the given server fault.com.lexmark.saperion.exceptions.system.SystemExceptioncreateException(String message) Creates a new exception for the given server fault.com.lexmark.saperion.exceptions.system.SystemExceptioncreateException(String message, Throwable cause) Creates a new exception for the given server fault.com.lexmark.saperion.exceptions.system.SystemExceptioncreateException(Throwable cause) Creates a new exception for the given server fault.com.lexmark.saperion.exceptions.ErrorCodeTypeReturns the error code this exception mapping applies to.booleanvalidate()Validates the integrity of the exception mapping.Returns the enum constant of this class with the specified name.static SystemExceptionFactory.SystemErrors[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SYSTEM_CONNECTION_INVALID
-
SYSTEM_CONNECTION_POOL_ERROR
-
SYSTEM_SERIALIZATION_ERROR
-
SYSTEM_DESERIALIZATION_ERROR
-
PROTOCOL_MISSING_VERSION
-
PROTOCOL_INCOMPATIBLE_VERSION
-
BACKEND_SYSTEM_ERROR
-
BACKEND_CONFIGURATION_ERROR
-
SECURITY_ERROR
-
SECURITY_ACCESS_DENIED
-
AUTHENTICATION_ERROR
-
AUTHENTICATION_UNKNOWN_SCHEME
-
AUTHENTICATION_INVALID_HEADER
-
AUTHENTICATION_INVALID_TENANT
-
AUTHENTICATION_INVALID_PASSWORD
-
AUTHENTICATION_PASSWORD_EXPIRED
-
SECURITY_TOKEN_UNKNOWN
-
SECURITY_TOKEN_EXPIRED
-
SECURITY_TOKEN_INCOSTENT
-
SECURITY_TOKEN_INVALID
-
SYSTEM_GENERAL_ERROR
-
SYSTEM_STORAGE_ERROR
-
-
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
-
createException
public com.lexmark.saperion.exceptions.system.SystemException createException(com.lexmark.saperion.exceptions.ErrorType fault, Throwable cause) Description copied from interface:ExceptionMappingCreates a new exception for the given server fault.- Specified by:
createExceptionin interfaceExceptionMapping<com.lexmark.saperion.exceptions.system.SystemException>- Parameters:
fault- the server errorcause- the exception cause- Returns:
- the new exception
-
createException
Description copied from interface:ExceptionMappingCreates a new exception for the given server fault.- Specified by:
createExceptionin interfaceExceptionMapping<com.lexmark.saperion.exceptions.system.SystemException>- Parameters:
message- the error message- Returns:
- the new exception
-
createException
public com.lexmark.saperion.exceptions.system.SystemException createException(String message, Throwable cause) Description copied from interface:ExceptionMappingCreates a new exception for the given server fault.- Specified by:
createExceptionin interfaceExceptionMapping<com.lexmark.saperion.exceptions.system.SystemException>- Parameters:
message- the error messagecause- the exception cause- Returns:
- the new exception
-
createException
Description copied from interface:ExceptionMappingCreates a new exception for the given server fault.- Specified by:
createExceptionin interfaceExceptionMapping<com.lexmark.saperion.exceptions.system.SystemException>- Parameters:
cause- the exception cause- Returns:
- the new exception
-
getErrorCode
public com.lexmark.saperion.exceptions.ErrorCodeType getErrorCode()Description copied from interface:ExceptionMappingReturns the error code this exception mapping applies to.- Specified by:
getErrorCodein interfaceExceptionMapping<com.lexmark.saperion.exceptions.system.SystemException>- Returns:
- the exception mapping's error code
-
validate
public boolean validate()Description copied from interface:ExceptionMappingValidates the integrity of the exception mapping. An exception mapping is valid if the mapped exception class can be instantiated and an appropriate factory constructor exists. Appropriate exception implementations must provide a factory constructors that consume anErrorTypeand aThrowable.- Specified by:
validatein interfaceExceptionMapping<com.lexmark.saperion.exceptions.system.SystemException>- Returns:
trueif the mapping is valid and the mapped exception fits the design rules, otherwisefalse
-