Class SaveException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.jbstrap.core.dao.exception.SaveException
All Implemented Interfaces:
Serializable

public class SaveException extends Exception
Data save exception
Since:
4.0
Author:
JBStrap
See Also:
  • Constructor Details

    • SaveException

      public SaveException(Throwable e)
      Throws a save exception. The stack trace is from the exception specified in the parameter.
      Parameters:
      e - The original exception
    • SaveException

      public SaveException(String exceptionMessageKey, Object... args)
      Throws an exception, when an error is encountered during the save operation. The error message based on the message parameters and message key.
      Parameters:
      exceptionMessageKey - The exception message source key
      args - Error message parameters (message source message arguments)
    • SaveException

      public SaveException(String exceptionMessageKey, Throwable e, Object... args)
      Throws an exception, when an error is encountered during the save operation. The error message is created, based on the message parameters and the message key. The stack trace originates from the error that is specified in the parameter.
      Parameters:
      exceptionMessageKey - The error message key, which is a message source key
      e - The original exception
      args - Error message parameters (message source message arguments)
  • Method Details

    • getExceptionMessageKey

      public String getExceptionMessageKey()
      Gets the exception message source key
      Returns:
      The exception message key