Class DataAccessException

  • All Implemented Interfaces:
    java.io.Serializable

    public class DataAccessException
    extends java.lang.Exception
    Root of the hierarchy of data access exceptions discussed in.
    Author:
    Rod Johnson
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DataAccessException.Reason getReason()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DataAccessException

        public DataAccessException​(java.lang.String msg)
        Constructor for DataAccessException.
        Parameters:
        msg - the detail message
      • DataAccessException

        public DataAccessException​(DataAccessException.Reason reason,
                                   java.lang.String msg)
        Constructor for DataAccessException.
        Parameters:
        reason - the reason
        msg - the detail message
      • DataAccessException

        public DataAccessException​(java.lang.String msg,
                                   java.lang.Throwable cause)
        Constructor for DataAccessException.
        Parameters:
        msg - the detail message
        cause - the root cause (usually from using an underlying data access API such as JDBC)
      • DataAccessException

        public DataAccessException​(DataAccessException.Reason reason,
                                   java.lang.String msg,
                                   java.lang.Throwable cause)
        Constructor for DataAccessException.
        Parameters:
        reason - the reason
        msg - the detail message
        cause - the root cause (usually from using an underlying data access API such as JDBC)