T - the exception type supported by the factorypublic abstract class AbstractExceptionFactory<T extends Exception> extends Object implements ExceptionFactory<T>
getExceptionMappings() method. This method returns all
exception mappings registered with this factory.ExceptionFactory.IntegrityCheckResult| Constructor and Description |
|---|
AbstractExceptionFactory() |
| Modifier and Type | Method and Description |
|---|---|
ExceptionFactory.IntegrityCheckResult |
checkIntegrity()
Performs an integrity check on the factories exception mapping registries.
|
T |
createException(com.lexmark.saperion.exceptions.ErrorType fault,
Throwable cause)
This method creates a new exception instance for the given server fault.
|
protected abstract ExceptionMapping<T>[] |
getExceptionMappings()
This method returns all exception mappings registered with this factory.
|
Set<com.lexmark.saperion.exceptions.ErrorCodeType> |
getSupportedErrors()
Returns the supported error codes for this factory instance.
|
boolean |
supports(com.lexmark.saperion.exceptions.ErrorCodeType errorCode)
This method determines if an exception mapping for faults with the given error code exists in the factory
instance.
|
ExceptionMapping<T> |
valueOf(com.lexmark.saperion.exceptions.ErrorCodeType code)
Returns the exception mapping for this error code.
|
public T createException(com.lexmark.saperion.exceptions.ErrorType fault, Throwable cause)
ExceptionFactorycreateException in interface ExceptionFactory<T extends Exception>fault - the server error representationcause - the exception causepublic Set<com.lexmark.saperion.exceptions.ErrorCodeType> getSupportedErrors()
public boolean supports(com.lexmark.saperion.exceptions.ErrorCodeType errorCode)
ExceptionFactorysupports in interface ExceptionFactory<T extends Exception>errorCode - the server error codepublic ExceptionMapping<T> valueOf(com.lexmark.saperion.exceptions.ErrorCodeType code)
code - the error code to retrieve a mapping forprotected abstract ExceptionMapping<T>[] getExceptionMappings()
public ExceptionFactory.IntegrityCheckResult checkIntegrity()
ExceptionFactorycheckIntegrity in interface ExceptionFactory<T extends Exception>Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.