- /*
- * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
- * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
- */
-
- package javax.resource.spi;
-
- import javax.resource.ResourceException;
-
- /** A LocalTransactionException represents various error conditions related
- * to the local transaction management contract. The JTA specification
- * specifies the javax.transaction.xa.XAException class for exceptions
- * related to XAResource based transaction management contract.
- *
- * <p>The LocalTransactionException is used for the local transaction
- * management contract to indicate the following common error conditions:
- * <UL>
- * <LI>invalid transaction context when a transaction operation is executed.
- * For example, calling LocalTransaction.commit method without an active
- * local transaction is an error condition
- * <LI>transaction is rolled back instead of getting committed in the
- * LocalTransaction.commit method.
- * <LI>attempt to start a local transaction from the same thread on a
- * ManagedConnection that is already associated with an active local
- * transaction
- * <LI>any resource adapter or resource manager specific error conditions
- * related to local transaction management. Examples are violation of
- * integrity of resources, deadlock detection, communication failure
- * during transaction completion, retry required or any internal error
- * in a resource manager.
- * </UL>
- * @version 0.7
- * @author Rahul Sharma
- */
-
- public class LocalTransactionException extends javax.resource.ResourceException {
-
- /**
- * Create a LocalTransactionException.
- *
- * @param reason a description of the exception
- * @param errorCode a string specifying the vendor specific
- * error code
- **/
- public
- LocalTransactionException(String reason, String errorCode) {
- super(reason, errorCode);
- }
-
- /**
- * Create a LocalTransactionException with reason.
- *
- * @param reason a description of the exception
- **/
- public
- LocalTransactionException(String reason) {
- super(reason);
- }
- }