Class DAOException

  • All Implemented Interfaces:
    Serializable

    public class DAOException
    extends RuntimeException
    This is the base exception for example DAOs. Note the design decision that needs to be made between a checked Exception and an unchecked RuntimeException. By using checked Exceptions you are requiring all interfacing code to deal with the exception -- even if it cannot correct it. By using unchecked RuntimeExceptions the interfacing business code can be written cleaner by not being polluted with infrastructure exceptions.
    See Also:
    Serialized Form
    • Constructor Detail

      • DAOException

        public DAOException()
      • DAOException

        public DAOException​(String message)
      • DAOException

        public DAOException​(String message,
                            Throwable rootCause)
      • DAOException

        public DAOException​(Throwable rootCause)