Package org.datanucleus.exceptions
Class TransactionNotActiveException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.datanucleus.exceptions.NucleusException
-
- org.datanucleus.exceptions.NucleusUserException
-
- 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 ExecutionContext yet the transaction is not active.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Fields inherited from class org.datanucleus.exceptions.NucleusException
failed, fatal, nested
-
-
Constructor Summary
Constructors Constructor Description 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, setNestedException
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
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 messagefailedObject
- the failed object
-
-