org.genericdao
Class RollbackException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.genericdao.RollbackException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DuplicateKeyException

public class RollbackException
extends Exception

The exception thrown when a CRUD method encounters a problem, such as not being able to connect to the database, deadlock, when invalid parameters are passed, etc.

If a user initiated transaction was active when a CRUD method throws RollbackException the transaction (by convention) is rolled back before (or in the process of) throwing RollbackException.

See Also:
Serialized Form

Constructor Summary
RollbackException(Exception e)
           
RollbackException(String message)
           
RollbackException(String message, Exception e)
           
 
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

RollbackException

public RollbackException(String message)

RollbackException

public RollbackException(Exception e)

RollbackException

public RollbackException(String message,
                         Exception e)


Copyright © 2012 Jeffrey L. Eppinger. All rights reserved. Permission granted for educational use only.