org.datanucleus.exceptions
Class TransactionNotActiveException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.datanucleus.exceptions.NucleusException
                  extended by org.datanucleus.exceptions.NucleusUserException
                      extended by org.datanucleus.exceptions.TransactionNotActiveException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
TransactionNotReadableException, TransactionNotWritableException

public class TransactionNotActiveException
extends NucleusUserException

An exception thrown when commit/rollback is invoked on an ObjectManager yet the transaction is not active.

See Also:
Serialized Form

Constructor Summary
TransactionNotActiveException()
          Constructs an exception with the specified detail message.
TransactionNotActiveException(java.lang.String message, java.lang.Object failedObject)
          Constructor.
 
Method Summary
 
Methods inherited from class org.datanucleus.exceptions.NucleusException
getCause, getFailedObject, getNestedExceptions, isFatal, printStackTrace, printStackTrace, printStackTrace, setFatal
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransactionNotActiveException

public TransactionNotActiveException()
Constructs an exception with the specified detail message.


TransactionNotActiveException

public TransactionNotActiveException(java.lang.String message,
                                     java.lang.Object failedObject)
Constructor.

Parameters:
message - the localized error message
failedObject - the failed object


Copyright © 2010. All Rights Reserved.