javax.transaction.RollbackException Maven / Gradle / Ivy
Go to download
This artifact provides a single jar that contains all classes required to use remote Jakarta Enterprise Beans and Jakarta Messaging, including
all dependencies. It is intended for use by those not using maven, maven users should just import the Jakarta Enterprise Beans and
Jakarta Messaging BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up
with different versions on classes on the class path).
package javax.transaction;
/**
* 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:
*
* -
* At transaction commit time, if the transaction has been marked for
* rollback only. In this case, the
commit
method will roll
* back the transaction and throw this exception to indicate that the
* transaction could not be committed.
*
* -
* At other times, if an operation cannot be completed because the
* transaction is marked for rollback only.
* The {@link Transaction#enlistResource(javax.transaction.xa.XAResource) enlistResource}
* and {@link Transaction#registerSynchronization(Synchronization) registerSynchronization}
* methods in the {@link 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.
*
*
*
* @version $Revision$
*/
public class RollbackException extends Exception
{
/**
* Creates a new RollbackException
without a detail message.
*/
public RollbackException()
{
}
/**
* Constructs an RollbackException
with the specified
* detail message.
*
* @param msg the detail message.
*/
public RollbackException(String msg)
{
super(msg);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy