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 Details

    • 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:
  • Constructor Details

    • DataAccessExceptionHandler

      public DataAccessExceptionHandler()
  • Method Details

    • 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.