com.framework.jdto.exceptions
Class DAOException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.framework.jdto.exceptions.DAOException
All Implemented Interfaces:
Serializable

public class DAOException
extends Exception

The class DAOException extends Exception class and is thrown whenever there is an SQLException in the PreparedStatementWrapper and StatementWrapper classes. This Exception should be caught in all the DAO Classes.

Author:
msatish
See Also:
Serialized Form

Constructor Summary
DAOException()
          Default Constructor
DAOException(boolean isRunningInTransaction)
          Constructs a New DAOException and calls the setRollbackOnly() method of the current transaction Context which inturn sets the status to TransactionStatus.STATUS_MARKED_ROLLBACK
DAOException(String message)
          Constructor with a message
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DAOException

public DAOException()
Default Constructor


DAOException

public DAOException(String message)
Constructor with a message


DAOException

public DAOException(boolean isRunningInTransaction)
Constructs a New DAOException and calls the setRollbackOnly() method of the current transaction Context which inturn sets the status to TransactionStatus.STATUS_MARKED_ROLLBACK