T - the mapped exception typepublic interface ExceptionMapping<T extends Throwable>
ExceptionFactory| Modifier and Type | Method and Description |
|---|---|
T |
createException(com.lexmark.saperion.exceptions.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.
|
com.lexmark.saperion.exceptions.ErrorCodeType |
getErrorCode()
Returns the error code this exception mapping applies to.
|
boolean |
validate()
Validates the integrity of the exception mapping.
|
T createException(com.lexmark.saperion.exceptions.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 causecom.lexmark.saperion.exceptions.ErrorCodeType getErrorCode()
boolean validate()
ErrorType and a Throwable.true if the mapping is valid and the mapped exception fits the design rules, otherwise
falseCopyright © 2020 Hyland Software Germany GmbH. All rights reserved.