public static enum RuntimeExceptionFactory.RuntimeErrors extends Enum<RuntimeExceptionFactory.RuntimeErrors> implements ExceptionMapping<EcmRuntimeException>
Modifier and Type | Method and Description |
---|---|
EcmRuntimeException |
createException(ErrorType error,
Throwable cause)
Creates a new exception for the given server fault.
|
EcmRuntimeException |
createException(String message)
Creates a new exception for the given server fault.
|
EcmRuntimeException |
createException(String message,
Throwable cause)
Creates a new exception for the given server fault.
|
EcmRuntimeException |
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 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 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 EcmRuntimeException createException(ErrorType error, Throwable cause)
ExceptionMapping
createException
in interface ExceptionMapping<EcmRuntimeException>
error
- the server errorcause
- the exception causepublic EcmRuntimeException createException(String message)
ExceptionMapping
createException
in interface ExceptionMapping<EcmRuntimeException>
message
- the error messagepublic EcmRuntimeException createException(String message, Throwable cause)
ExceptionMapping
createException
in interface ExceptionMapping<EcmRuntimeException>
message
- the error messagecause
- the exception causepublic EcmRuntimeException createException(Throwable cause)
ExceptionMapping
createException
in interface ExceptionMapping<EcmRuntimeException>
cause
- the exception causepublic ErrorCodeType getErrorCode()
ExceptionMapping
getErrorCode
in interface ExceptionMapping<EcmRuntimeException>
public boolean validate()
ExceptionMapping
ErrorType
and a Throwable
.validate
in interface ExceptionMapping<EcmRuntimeException>
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.