Class DataAccessExceptionHandler
- java.lang.Object
-
- com.aquima.interactions.foundation.exception.DataAccessExceptionHandler
-
- Direct Known Subclasses:
PortalDataAccessExceptionHandler
,ProcessDataAccessExceptionHandler
public class DataAccessExceptionHandler extends Object
Utility class for building exception messages and throwing different types of exceptions.- Since:
- 10.0
- Author:
- Voicu Moldovan
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_EXCEPTION_MESSAGE_TEXT
Default text message to rollback to, if no message with the above key is found.
-
Constructor Summary
Constructors Constructor Description DataAccessExceptionHandler()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
buildAndLogErrorMessage(AppDataAccessException e)
This class just builds and logs the error message for a given exception without throwing another exception.
-
-
-
Field Detail
-
DEFAULT_EXCEPTION_MESSAGE_TEXT
public static final String DEFAULT_EXCEPTION_MESSAGE_TEXT
Default text message to rollback to, if no message with the above key is found.- See Also:
- Constant Field Values
-
-
Method Detail
-
buildAndLogErrorMessage
public static String buildAndLogErrorMessage(AppDataAccessException e)
This class just builds and logs the error message for a given exception without throwing another exception.- Parameters:
e
- corresponding data access exception.- Returns:
- the error message.
-
-