Package ejava.examples.daoex.dao
Class DAOException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- ejava.examples.daoex.dao.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
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description DAOException()
DAOException(String message)
DAOException(String message, Throwable rootCause)
DAOException(Throwable rootCause)
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-