public class RollbackException extends Exception
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 and Description |
---|
RollbackException()
Creates a new
RollbackException without a detail message. |
RollbackException(String msg)
Constructs an
RollbackException with the specified
detail message. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public RollbackException()
RollbackException
without a detail message.public RollbackException(String msg)
RollbackException
with the specified
detail message.msg
- the detail message.Copyright © 2017 JBoss by Red Hat. All rights reserved.