Version 4.10.0

hirondelle.web4j.database
Class DAOException

Object
  extended by Throwable
      extended by Exception
          extended by hirondelle.web4j.model.AppException
              extended by hirondelle.web4j.database.DAOException
All Implemented Interfaces:
MessageList, Serializable
Direct Known Subclasses:
DuplicateException, ForeignKeyException

public class DAOException
extends AppException

The only checked exception (excluding subclasses of this class) emitted by the data layer.

This class is an example of Data Exception Wrapping, and hides the various exceptions which arise from the various flavors of datastore implementation, such as SQLException, IOException, and BackingStoreException.

Thrown when a low-level, unusual problem is encountered with the data store. Examples of such a problem might include :

See Also:
Serialized Form

Constructor Summary
DAOException(String aMessage, Throwable aThrowable)
          Constructor.
 
Method Summary
 
Methods inherited from class hirondelle.web4j.model.AppException
add, add, add, getMessages, isEmpty, isNotEmpty, toString
 
Methods inherited from class Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DAOException

public DAOException(String aMessage,
                    Throwable aThrowable)
Constructor.

Both arguements are passed to AppException.AppException(String, Throwable).

Parameters:
aMessage - text describing the problem. Must have content.
aThrowable - root cause underlying the problem.

Version 4.10.0

Copyright Hirondelle Systems. Published October 19, 2013 - User Guide - All Docs.