org.perfectjpattern.jee.api.integration.dao
Class DaoException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.perfectjpattern.jee.api.integration.dao.DaoException
All Implemented Interfaces:
Serializable

public class DaoException
extends RuntimeException

Data Access Object (DAO) Exception

Version:
$Revision: 1.0 $ $Date: Nov 26, 2007 8:46:05 PM $
Author:
Giovanni Azua
See Also:
Serialized Form
 

Constructor Summary
DaoException()
          Constructs a new DaoException with null as its detail message.
DaoException(String aMessage)
          Constructs a new DaoException with the specified detail message.
DaoException(String aMessage, Throwable aCause)
          Constructs a new DaoException with the specified detail message and cause.
DaoException(Throwable aCause)
          Constructs a new DaoException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, 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

DaoException

public DaoException()
Constructs a new DaoException with null as its detail message.


DaoException

public DaoException(String aMessage,
                    Throwable aCause)
Constructs a new DaoException with the specified detail message and cause.

Note that the detail message associated with cause is not automatically incorporated in this runtime exception's detail message.

Parameters:
aMessage - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).
aCause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

DaoException

public DaoException(String aMessage)
Constructs a new DaoException with the specified detail message.

Parameters:
aMessage - the detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.

DaoException

public DaoException(Throwable aCause)
Constructs a new DaoException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). This constructor is useful for runtime exceptions that are little more than wrappers for other throwables.

Parameters:
aCause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)


Copyright © 2007-2009. All Rights Reserved.