public static enum RuntimeExceptionFactory.RuntimeErrors extends Enum<RuntimeExceptionFactory.RuntimeErrors> implements ExceptionMapping<com.lexmark.saperion.exceptions.EcmRuntimeException>
Modifier and Type | Method and Description |
---|---|
com.lexmark.saperion.exceptions.EcmRuntimeException |
createException(com.lexmark.saperion.exceptions.ErrorType error,
Throwable cause)
Creates a new exception for the given server fault.
|
com.lexmark.saperion.exceptions.EcmRuntimeException |
createException(String message)
Creates a new exception for the given server fault.
|
com.lexmark.saperion.exceptions.EcmRuntimeException |
createException(String message,
Throwable cause)
Creates a new exception for the given server fault.
|
com.lexmark.saperion.exceptions.EcmRuntimeException |
createException(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 RuntimeExceptionFactory.RuntimeErrors |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RuntimeExceptionFactory.RuntimeErrors[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RuntimeExceptionFactory.RuntimeErrors GENERAL_ERROR
public static final RuntimeExceptionFactory.RuntimeErrors INTERNAL_SERVER_ERROR
public static final RuntimeExceptionFactory.RuntimeErrors RESOURCE_NOT_FOUND_ERROR
public static final RuntimeExceptionFactory.RuntimeErrors ILLEGAL_INPUT_ERROR
public static final RuntimeExceptionFactory.RuntimeErrors CLIENT_SEARCH_ERROR
public static final RuntimeExceptionFactory.RuntimeErrors CLIENT_MANDATORY_CONSTRAINT_VIOLATION_ERROR
public static final RuntimeExceptionFactory.RuntimeErrors CLIENT_SYSTEM_FIELD_WRITE_ERROR
public static final RuntimeExceptionFactory.RuntimeErrors CLIENT_UNIQUE_CONSTRAINT_VIOLATION_ERROR
public static final RuntimeExceptionFactory.RuntimeErrors CLIENT_ACCESS_DENIED
public static final RuntimeExceptionFactory.RuntimeErrors CLIENT_WRONG_ARCHIVE_TYPE_ERROR
public static final RuntimeExceptionFactory.RuntimeErrors CLIENT_CONCURRENT_WRITE_ERROR
public static final RuntimeExceptionFactory.RuntimeErrors BACKEND_CONNECTION_ERROR
public static final RuntimeExceptionFactory.RuntimeErrors CLIENT_OBJECT_LOCKED_ERROR
public static final RuntimeExceptionFactory.RuntimeErrors CLIENT_STORAGE_PROFILE_ASSIGNMENT_ERROR
public static final RuntimeExceptionFactory.RuntimeErrors CLIENT_ILLEGAL_RETENTION_ERROR
public static final RuntimeExceptionFactory.RuntimeErrors CLIENT_RETENTION_VIOLATION_ERROR
public static final RuntimeExceptionFactory.RuntimeErrors BACKEND_EVENT_PROCESSING_ERROR
public static final RuntimeExceptionFactory.RuntimeErrors CLIENT_NO_LICENSE_AVAILABLE_ERROR
public static RuntimeExceptionFactory.RuntimeErrors[] values()
for (RuntimeExceptionFactory.RuntimeErrors c : RuntimeExceptionFactory.RuntimeErrors.values()) System.out.println(c);
public static RuntimeExceptionFactory.RuntimeErrors 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 com.lexmark.saperion.exceptions.EcmRuntimeException createException(com.lexmark.saperion.exceptions.ErrorType error, Throwable cause)
ExceptionMapping
createException
in interface ExceptionMapping<com.lexmark.saperion.exceptions.EcmRuntimeException>
error
- the server errorcause
- the exception causepublic com.lexmark.saperion.exceptions.EcmRuntimeException createException(String message)
ExceptionMapping
createException
in interface ExceptionMapping<com.lexmark.saperion.exceptions.EcmRuntimeException>
message
- the error messagepublic com.lexmark.saperion.exceptions.EcmRuntimeException createException(String message, Throwable cause)
ExceptionMapping
createException
in interface ExceptionMapping<com.lexmark.saperion.exceptions.EcmRuntimeException>
message
- the error messagecause
- the exception causepublic com.lexmark.saperion.exceptions.EcmRuntimeException createException(Throwable cause)
ExceptionMapping
createException
in interface ExceptionMapping<com.lexmark.saperion.exceptions.EcmRuntimeException>
cause
- the exception causepublic com.lexmark.saperion.exceptions.ErrorCodeType getErrorCode()
ExceptionMapping
getErrorCode
in interface ExceptionMapping<com.lexmark.saperion.exceptions.EcmRuntimeException>
public boolean validate()
ExceptionMapping
ErrorType
and a Throwable
.validate
in interface ExceptionMapping<com.lexmark.saperion.exceptions.EcmRuntimeException>
true
if the mapping is valid and the mapped exception fits the design rules, otherwise
false
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.