fr.umlv.javaodb
Class RollbackException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by fr.umlv.javaodb.PersistenceException
                  extended by fr.umlv.javaodb.RollbackException
All Implemented Interfaces:
Serializable

public class RollbackException
extends PersistenceException

This exception is raised by a persistent context to indicate that the current context has been rollbacked. A user code can catch this exception and do what is required in that case. Depending on the context's kind this exception can be raised at different locations to ensure coherence of the object states.

Author:
Remi Forax
See Also:
PersistenceContext, Serialized Form

Constructor Summary
RollbackException(String message)
          Creates an exception with a cause and a message.
RollbackException(String message, Throwable cause)
          Creates an exception with a cause and a message.
RollbackException(Throwable cause)
          Creates an exception with a cause and a message.
 
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,
                         Throwable cause)
Creates an exception with a cause and a message.

Parameters:
message - the message
cause - the cause of the exception.

RollbackException

public RollbackException(String message)
Creates an exception with a cause and a message.

Parameters:
message - the message

RollbackException

public RollbackException(Throwable cause)
Creates an exception with a cause and a message.

Parameters:
cause - the cause of the exception.


2006 - Université de Marne-la-Vallée