javax.resource.spi
Class LocalTransactionException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--javax.resource.ResourceException
                    |
                    +--javax.resource.spi.LocalTransactionException
All Implemented Interfaces:
java.io.Serializable

public class LocalTransactionException
extends 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.

The LocalTransactionException is used for the local transaction management contract to indicate the following common error conditions:

See Also:
Serialized Form

Constructor Summary
LocalTransactionException(java.lang.String reason)
          Create a LocalTransactionException with reason.
LocalTransactionException(java.lang.String reason, java.lang.String errorCode)
          Create a LocalTransactionException.
 
Methods inherited from class javax.resource.ResourceException
getErrorCode, getLinkedException, setLinkedException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalTransactionException

public LocalTransactionException(java.lang.String reason,
                                 java.lang.String errorCode)
Create a LocalTransactionException.
Parameters:
reason - a description of the exception
errorCode - a string specifying the vendor specific error code

LocalTransactionException

public LocalTransactionException(java.lang.String reason)
Create a LocalTransactionException with reason.
Parameters:
reason - a description of the exception