public static enum ApplicationExceptionFactory.ApplicationErrors extends Enum<ApplicationExceptionFactory.ApplicationErrors> implements ExceptionMapping<ApplicationException>
Enum Constant and Description |
---|
APPLICATION_MALFORMED_ENTITY_ERROR |
GENERAL_ERROR |
SEARCH_ERROR |
SEARCH_STATEMENT_EXECUTION_ERROR |
SEARCH_STATEMENT_SYNTAX_ERROR |
WORKFLOW_ACTOR_REQUIRED_ERROR |
WORKFLOW_GENERAL_ERROR |
Modifier and Type | Method and Description |
---|---|
ApplicationException |
createException(ErrorType fault,
Throwable cause)
Creates a new exception for the given server fault.
|
ApplicationException |
createException(String message)
Creates a new exception for the given server fault.
|
ApplicationException |
createException(String message,
Throwable cause)
Creates a new exception for the given server fault.
|
ApplicationException |
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 ApplicationExceptionFactory.ApplicationErrors |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ApplicationExceptionFactory.ApplicationErrors[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ApplicationExceptionFactory.ApplicationErrors GENERAL_ERROR
public static final ApplicationExceptionFactory.ApplicationErrors WORKFLOW_GENERAL_ERROR
public static final ApplicationExceptionFactory.ApplicationErrors WORKFLOW_ACTOR_REQUIRED_ERROR
public static final ApplicationExceptionFactory.ApplicationErrors APPLICATION_MALFORMED_ENTITY_ERROR
public static final ApplicationExceptionFactory.ApplicationErrors SEARCH_ERROR
public static final ApplicationExceptionFactory.ApplicationErrors SEARCH_STATEMENT_EXECUTION_ERROR
public static final ApplicationExceptionFactory.ApplicationErrors SEARCH_STATEMENT_SYNTAX_ERROR
public static ApplicationExceptionFactory.ApplicationErrors[] values()
for (ApplicationExceptionFactory.ApplicationErrors c : ApplicationExceptionFactory.ApplicationErrors.values()) System.out.println(c);
public static ApplicationExceptionFactory.ApplicationErrors 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 ApplicationException createException(ErrorType fault, Throwable cause)
ExceptionMapping
createException
in interface ExceptionMapping<ApplicationException>
fault
- the server errorcause
- the exception causepublic ApplicationException createException(String message)
ExceptionMapping
createException
in interface ExceptionMapping<ApplicationException>
message
- the error messagepublic ApplicationException createException(String message, Throwable cause)
ExceptionMapping
createException
in interface ExceptionMapping<ApplicationException>
message
- the error messagecause
- the exception causepublic ApplicationException createException(Throwable cause)
ExceptionMapping
createException
in interface ExceptionMapping<ApplicationException>
cause
- the exception causepublic ErrorCodeType getErrorCode()
ExceptionMapping
getErrorCode
in interface ExceptionMapping<ApplicationException>
public boolean validate()
ExceptionMapping
ErrorType
and a Throwable
.validate
in interface ExceptionMapping<ApplicationException>
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.