public static enum SystemExceptionFactory.SystemErrors extends Enum<SystemExceptionFactory.SystemErrors> implements ExceptionMapping<SystemException>
Modifier and Type | Method and Description |
---|---|
SystemException |
createException(ErrorType fault,
Throwable cause)
Creates a new exception for the given server fault.
|
SystemException |
createException(String message)
Creates a new exception for the given server fault.
|
SystemException |
createException(String message,
Throwable cause)
Creates a new exception for the given server fault.
|
SystemException |
createException(Throwable cause)
Creates a new exception for the given server fault.
|
ErrorCodeType |
getErrorCode()
Returns the error code this exception mapping applies to.
|
boolean |
validate()
Validates the integrity of the exception mapping.
|
static SystemExceptionFactory.SystemErrors |
valueOf(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.
|
public static final SystemExceptionFactory.SystemErrors SYSTEM_CONNECTION_INVALID
public static final SystemExceptionFactory.SystemErrors SYSTEM_CONNECTION_POOL_ERROR
public static final SystemExceptionFactory.SystemErrors SYSTEM_SERIALIZATION_ERROR
public static final SystemExceptionFactory.SystemErrors SYSTEM_DESERIALIZATION_ERROR
public static final SystemExceptionFactory.SystemErrors PROTOCOL_MISSING_VERSION
public static final SystemExceptionFactory.SystemErrors PROTOCOL_INCOMPATIBLE_VERSION
public static final SystemExceptionFactory.SystemErrors BACKEND_SYSTEM_ERROR
public static final SystemExceptionFactory.SystemErrors BACKEND_CONFIGURATION_ERROR
public static final SystemExceptionFactory.SystemErrors SECURITY_ERROR
public static final SystemExceptionFactory.SystemErrors SECURITY_ACCESS_DENIED
public static final SystemExceptionFactory.SystemErrors AUTHENTICATION_ERROR
public static final SystemExceptionFactory.SystemErrors AUTHENTICATION_UNKNOWN_SCHEME
public static final SystemExceptionFactory.SystemErrors AUTHENTICATION_INVALID_HEADER
public static final SystemExceptionFactory.SystemErrors AUTHENTICATION_INVALID_TENANT
public static final SystemExceptionFactory.SystemErrors AUTHENTICATION_INVALID_PASSWORD
public static final SystemExceptionFactory.SystemErrors AUTHENTICATION_PASSWORD_EXPIRED
public static final SystemExceptionFactory.SystemErrors SECURITY_TOKEN_UNKNOWN
public static final SystemExceptionFactory.SystemErrors SECURITY_TOKEN_EXPIRED
public static final SystemExceptionFactory.SystemErrors SECURITY_TOKEN_INCOSTENT
public static final SystemExceptionFactory.SystemErrors SECURITY_TOKEN_INVALID
public static final SystemExceptionFactory.SystemErrors SYSTEM_GENERAL_ERROR
public static SystemExceptionFactory.SystemErrors[] values()
for (SystemExceptionFactory.SystemErrors c : SystemExceptionFactory.SystemErrors.values()) System.out.println(c);
public static SystemExceptionFactory.SystemErrors valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic SystemException createException(ErrorType fault, Throwable cause)
ExceptionMapping
createException
in interface ExceptionMapping<SystemException>
fault
- the server errorcause
- the exception causepublic SystemException createException(String message)
ExceptionMapping
createException
in interface ExceptionMapping<SystemException>
message
- the error messagepublic SystemException createException(String message, Throwable cause)
ExceptionMapping
createException
in interface ExceptionMapping<SystemException>
message
- the error messagecause
- the exception causepublic SystemException createException(Throwable cause)
ExceptionMapping
createException
in interface ExceptionMapping<SystemException>
cause
- the exception causepublic ErrorCodeType getErrorCode()
ExceptionMapping
getErrorCode
in interface ExceptionMapping<SystemException>
public boolean validate()
ExceptionMapping
ErrorType
and a Throwable
.validate
in interface ExceptionMapping<SystemException>
true
if the mapping is valid and the mapped exception fits the design rules, otherwise
false
Copyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.