Class PortalDataAccessExceptionHandler
java.lang.Object
com.aquima.interactions.foundation.exception.DataAccessExceptionHandler
com.aquima.interactions.portal.exception.PortalDataAccessExceptionHandler
Utility class for building exception messages and throwing different types of exceptions.
- Since:
- 10.0
- Author:
- Voicu Moldovan
-
Field Summary
Fields inherited from class com.aquima.interactions.foundation.exception.DataAccessExceptionHandler
DEFAULT_EXCEPTION_MESSAGE_TEXT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AppException
Throws aAppException
and logs the error message.static ContainerException
Throws aContainerException
and logs the error message.static ContainerException
Throws aContainerException
and logs the error message.static ServiceException
Throws aServiceException
and logs the error message.Methods inherited from class com.aquima.interactions.foundation.exception.DataAccessExceptionHandler
buildAndLogErrorMessage
-
Constructor Details
-
PortalDataAccessExceptionHandler
public PortalDataAccessExceptionHandler()
-
-
Method Details
-
handleAsAppException
Throws aAppException
and logs the error message.- Parameters:
e
- corresponding data access exception.- Returns:
- a new AppException.
-
handleAsServiceException
public static ServiceException handleAsServiceException(IServiceContext context, AppDataAccessException e) Throws aServiceException
and logs the error message.- Parameters:
context
- the service context in which the exception took place.e
- corresponding data access exception.- Returns:
- a new ServiceException.
-
handleAsContainerException
public static ContainerException handleAsContainerException(IContainerContext context, AppDataAccessException e) Throws aContainerException
and logs the error message.- Parameters:
context
- the container context in which the exception took place.e
- corresponding data access exception.- Returns:
- a new ContainerException.
-
handleAsContainerException
public static ContainerException handleAsContainerException(IContainerEventContext context, AppDataAccessException e) Throws aContainerException
and logs the error message.- Parameters:
context
- the container event context in which the exception took place.e
- corresponding data access exception.- Returns:
- a new ContainerException.
-