T - the mapped exception typepublic interface ExceptionMapping<T extends Throwable>
ExceptionFactory| Modifier and Type | Method and Description |
|---|---|
T |
createException(ErrorType error,
Throwable cause)
Creates a new exception for the given server fault.
|
T |
createException(String message)
Creates a new exception for the given server fault.
|
T |
createException(String message,
Throwable cause)
Creates a new exception for the given server fault.
|
T |
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.
|
T createException(ErrorType error, Throwable cause)
error - the server errorcause - the exception causeT createException(String message)
message - the error messageT createException(String message, Throwable cause)
message - the error messagecause - the exception causeT createException(Throwable cause)
cause - the exception causeErrorCodeType getErrorCode()
boolean validate()
ErrorType and a Throwable.true if the mapping is valid and the mapped exception fits the design rules, otherwise
falseCopyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.