Enum 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>
,java.io.Serializable
,java.lang.Comparable<SystemExceptionFactory.SystemErrors>
- Enclosing class:
- SystemExceptionFactory
public static enum SystemExceptionFactory.SystemErrors extends java.lang.Enum<SystemExceptionFactory.SystemErrors> implements ExceptionMapping<com.lexmark.saperion.exceptions.system.SystemException>
System error defintions.- Author:
- owaeldrich
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.lexmark.saperion.exceptions.system.SystemException
createException(com.lexmark.saperion.exceptions.ErrorType fault, java.lang.Throwable cause)
Creates a new exception for the given server fault.com.lexmark.saperion.exceptions.system.SystemException
createException(java.lang.String message)
Creates a new exception for the given server fault.com.lexmark.saperion.exceptions.system.SystemException
createException(java.lang.String message, java.lang.Throwable cause)
Creates a new exception for the given server fault.com.lexmark.saperion.exceptions.system.SystemException
createException(java.lang.Throwable cause)
Creates a new exception for the given server fault.com.lexmark.saperion.exceptions.ErrorCodeType
getErrorCode()
Returns the error code this exception mapping applies to.boolean
validate()
Validates the integrity of the exception mapping.static SystemExceptionFactory.SystemErrors
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SystemExceptionFactory.SystemErrors[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SYSTEM_CONNECTION_INVALID
public static final SystemExceptionFactory.SystemErrors SYSTEM_CONNECTION_INVALID
-
SYSTEM_CONNECTION_POOL_ERROR
public static final SystemExceptionFactory.SystemErrors SYSTEM_CONNECTION_POOL_ERROR
-
SYSTEM_SERIALIZATION_ERROR
public static final SystemExceptionFactory.SystemErrors SYSTEM_SERIALIZATION_ERROR
-
SYSTEM_DESERIALIZATION_ERROR
public static final SystemExceptionFactory.SystemErrors SYSTEM_DESERIALIZATION_ERROR
-
PROTOCOL_MISSING_VERSION
public static final SystemExceptionFactory.SystemErrors PROTOCOL_MISSING_VERSION
-
PROTOCOL_INCOMPATIBLE_VERSION
public static final SystemExceptionFactory.SystemErrors PROTOCOL_INCOMPATIBLE_VERSION
-
BACKEND_SYSTEM_ERROR
public static final SystemExceptionFactory.SystemErrors BACKEND_SYSTEM_ERROR
-
BACKEND_CONFIGURATION_ERROR
public static final SystemExceptionFactory.SystemErrors BACKEND_CONFIGURATION_ERROR
-
SECURITY_ERROR
public static final SystemExceptionFactory.SystemErrors SECURITY_ERROR
-
SECURITY_ACCESS_DENIED
public static final SystemExceptionFactory.SystemErrors SECURITY_ACCESS_DENIED
-
AUTHENTICATION_ERROR
public static final SystemExceptionFactory.SystemErrors AUTHENTICATION_ERROR
-
AUTHENTICATION_UNKNOWN_SCHEME
public static final SystemExceptionFactory.SystemErrors AUTHENTICATION_UNKNOWN_SCHEME
-
AUTHENTICATION_INVALID_HEADER
public static final SystemExceptionFactory.SystemErrors AUTHENTICATION_INVALID_HEADER
-
AUTHENTICATION_INVALID_TENANT
public static final SystemExceptionFactory.SystemErrors AUTHENTICATION_INVALID_TENANT
-
AUTHENTICATION_INVALID_PASSWORD
public static final SystemExceptionFactory.SystemErrors AUTHENTICATION_INVALID_PASSWORD
-
AUTHENTICATION_PASSWORD_EXPIRED
public static final SystemExceptionFactory.SystemErrors AUTHENTICATION_PASSWORD_EXPIRED
-
SECURITY_TOKEN_UNKNOWN
public static final SystemExceptionFactory.SystemErrors SECURITY_TOKEN_UNKNOWN
-
SECURITY_TOKEN_EXPIRED
public static final SystemExceptionFactory.SystemErrors SECURITY_TOKEN_EXPIRED
-
SECURITY_TOKEN_INCOSTENT
public static final SystemExceptionFactory.SystemErrors SECURITY_TOKEN_INCOSTENT
-
SECURITY_TOKEN_INVALID
public static final SystemExceptionFactory.SystemErrors SECURITY_TOKEN_INVALID
-
SYSTEM_GENERAL_ERROR
public static final SystemExceptionFactory.SystemErrors SYSTEM_GENERAL_ERROR
-
SYSTEM_STORAGE_ERROR
public static final SystemExceptionFactory.SystemErrors SYSTEM_STORAGE_ERROR
-
-
Method Detail
-
values
public static SystemExceptionFactory.SystemErrors[] 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 (SystemExceptionFactory.SystemErrors c : SystemExceptionFactory.SystemErrors.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SystemExceptionFactory.SystemErrors valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
createException
public com.lexmark.saperion.exceptions.system.SystemException createException(com.lexmark.saperion.exceptions.ErrorType fault, java.lang.Throwable cause)
Description copied from interface:ExceptionMapping
Creates a new exception for the given server fault.- Specified by:
createException
in interfaceExceptionMapping<com.lexmark.saperion.exceptions.system.SystemException>
- Parameters:
fault
- the server errorcause
- the exception cause- Returns:
- the new exception
-
createException
public com.lexmark.saperion.exceptions.system.SystemException createException(java.lang.String message)
Description copied from interface:ExceptionMapping
Creates a new exception for the given server fault.- Specified by:
createException
in 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(java.lang.String message, java.lang.Throwable cause)
Description copied from interface:ExceptionMapping
Creates a new exception for the given server fault.- Specified by:
createException
in interfaceExceptionMapping<com.lexmark.saperion.exceptions.system.SystemException>
- Parameters:
message
- the error messagecause
- the exception cause- Returns:
- the new exception
-
createException
public com.lexmark.saperion.exceptions.system.SystemException createException(java.lang.Throwable cause)
Description copied from interface:ExceptionMapping
Creates a new exception for the given server fault.- Specified by:
createException
in 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:ExceptionMapping
Returns the error code this exception mapping applies to.- Specified by:
getErrorCode
in interfaceExceptionMapping<com.lexmark.saperion.exceptions.system.SystemException>
- Returns:
- the exception mapping's error code
-
validate
public boolean validate()
Description copied from interface:ExceptionMapping
Validates 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 anErrorType
and aThrowable
.- Specified by:
validate
in interfaceExceptionMapping<com.lexmark.saperion.exceptions.system.SystemException>
- Returns:
true
if the mapping is valid and the mapped exception fits the design rules, otherwisefalse
-
-