|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception javax.transaction.RollbackException
The RollbackException exception indicates that either the transaction has been rolled back or an operation cannot complete because the transaction is marked for rollback only.
It is thrown under two circumstances:
commit
method will roll
back the transaction and throw this exception to indicate that the
transaction could not be committed.
enlistResource
and registerSynchronization
methods in the Transaction
interface throw this exception to
indicate that the operation cannot be completed because the transaction
is marked for rollback only. In this case, the state of the transaction
remains unchanged.
Constructor Summary | |
RollbackException()
Creates a new RollbackException without a detail message. |
|
RollbackException(String msg)
Constructs an RollbackException with the specified
detail 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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RollbackException()
RollbackException
without a detail message.
public RollbackException(String msg)
RollbackException
with the specified
detail message.
msg
- the detail message.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |