T - the mapped ecms exception typepublic class EcmsExceptionMapping<T extends Throwable> extends Object implements ExceptionMapping<T>
EcmException class.| Constructor and Description |
|---|
EcmsExceptionMapping(com.lexmark.saperion.exceptions.ErrorConstantType errorCode,
Class<T> exception)
Creates a new exception mapping entry with the given error code and the given exception class.
|
| Modifier and Type | Method and Description |
|---|---|
T |
createException(com.lexmark.saperion.exceptions.ErrorType fault,
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.
|
public T createException(com.lexmark.saperion.exceptions.ErrorType fault, Throwable cause)
ExceptionMappingcreateException in interface ExceptionMapping<T extends Throwable>fault - the server errorcause - the exception causepublic T createException(String message)
ExceptionMappingcreateException in interface ExceptionMapping<T extends Throwable>message - the error messagepublic T createException(String message, Throwable cause)
ExceptionMappingcreateException in interface ExceptionMapping<T extends Throwable>message - the error messagecause - the exception causepublic T createException(Throwable cause)
ExceptionMappingcreateException in interface ExceptionMapping<T extends Throwable>cause - the exception causepublic com.lexmark.saperion.exceptions.ErrorCodeType getErrorCode()
ExceptionMappinggetErrorCode in interface ExceptionMapping<T extends Throwable>public boolean validate()
ExceptionMappingErrorType and a Throwable.validate in interface ExceptionMapping<T extends 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.