javax.transaction.xa
Class XAException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--javax.transaction.xa.XAException

public class XAException
extends java.lang.Exception

The XAException is thown by the Resource Manager (RM) to inform the Transaction Manager of error encountered for the transaction involved.

See Also:
Serialized Form

Field Summary
 int errorCode
          The error code to create the SystemException with
static int XA_HEURCOM
          The transaction branch has been heuristically committed.
static int XA_HEURHAZ
          The transaction branch may have been heuristically completed.
static int XA_HEURMIX
          The transaction branch has been heuristically committed and rolled back.
static int XA_HEURRB
          The transaction branch has been heuristically rolled back.
static int XA_NOMIGRATE
          Resumption must occur where suspension occured.
static int XA_RBBASE
          The inclusive lower bound oof the rollback codes.
static int XA_RBCOMMFAIL
          Rollback was caused by communication failure.
static int XA_RBDEADLOCK
          A deadlock was detected.
static int XA_RBEND
          The inclusive upper bound of the rollback error code.
static int XA_RBINTEGRITY
          A condition that violates the integrity of the resource was detected.
static int XA_RBOTHER
          The resource manager rolled back the transaction branch for a reason not on this list.
static int XA_RBPROTO
          A protocol error occured in the resource manager.
static int XA_RBROLLBACK
          Rollback was caused by unspecified reason.
static int XA_RBTIMEOUT
          A transaction branch took too long.
static int XA_RBTRANSIENT
          May retry the transaction branch.
static int XA_RDONLY
          The transaction branch has been read-only and has been committed.
static int XA_RETRY
          Routine returned with no effect and may be reissued.
static int XAER_ASYNC
          Asynchronous operation already outstanding.
static int XAER_DUPID
          The XID already exists.
static int XAER_INVAL
          Invalid arguments were given.
static int XAER_NOTA
          The XID is not valid.
static int XAER_OUTSIDE
          The resource manager is doing work outside global transaction.
static int XAER_PROTO
          Routine was invoked in an inproper context.
static int XAER_RMERR
          A resource manager error has occured in the transaction branch.
static int XAER_RMFAIL
          Resource manager is unavailable.
 
Constructor Summary
XAException()
          Create an XAException.
XAException(int errcode)
          Create an XAException with a given error code.
XAException(java.lang.String s)
          Create an XAException with a given string.
 
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
 

Field Detail

errorCode

public int errorCode
The error code to create the SystemException with

XA_RBBASE

public static final int XA_RBBASE
The inclusive lower bound oof the rollback codes.

XA_RBROLLBACK

public static final int XA_RBROLLBACK
Rollback was caused by unspecified reason.

XA_RBCOMMFAIL

public static final int XA_RBCOMMFAIL
Rollback was caused by communication failure.

XA_RBDEADLOCK

public static final int XA_RBDEADLOCK
A deadlock was detected.

XA_RBINTEGRITY

public static final int XA_RBINTEGRITY
A condition that violates the integrity of the resource was detected.

XA_RBOTHER

public static final int XA_RBOTHER
The resource manager rolled back the transaction branch for a reason not on this list.

XA_RBPROTO

public static final int XA_RBPROTO
A protocol error occured in the resource manager.

XA_RBTIMEOUT

public static final int XA_RBTIMEOUT
A transaction branch took too long.

XA_RBTRANSIENT

public static final int XA_RBTRANSIENT
May retry the transaction branch.

XA_RBEND

public static final int XA_RBEND
The inclusive upper bound of the rollback error code.

XA_NOMIGRATE

public static final int XA_NOMIGRATE
Resumption must occur where suspension occured.

XA_HEURHAZ

public static final int XA_HEURHAZ
The transaction branch may have been heuristically completed.

XA_HEURCOM

public static final int XA_HEURCOM
The transaction branch has been heuristically committed.

XA_HEURRB

public static final int XA_HEURRB
The transaction branch has been heuristically rolled back.

XA_HEURMIX

public static final int XA_HEURMIX
The transaction branch has been heuristically committed and rolled back.

XA_RETRY

public static final int XA_RETRY
Routine returned with no effect and may be reissued.

XA_RDONLY

public static final int XA_RDONLY
The transaction branch has been read-only and has been committed.

XAER_ASYNC

public static final int XAER_ASYNC
Asynchronous operation already outstanding.

XAER_RMERR

public static final int XAER_RMERR
A resource manager error has occured in the transaction branch.

XAER_NOTA

public static final int XAER_NOTA
The XID is not valid.

XAER_INVAL

public static final int XAER_INVAL
Invalid arguments were given.

XAER_PROTO

public static final int XAER_PROTO
Routine was invoked in an inproper context.

XAER_RMFAIL

public static final int XAER_RMFAIL
Resource manager is unavailable.

XAER_DUPID

public static final int XAER_DUPID
The XID already exists.

XAER_OUTSIDE

public static final int XAER_OUTSIDE
The resource manager is doing work outside global transaction.
Constructor Detail

XAException

public XAException()
Create an XAException.

XAException

public XAException(java.lang.String s)
Create an XAException with a given string.

XAException

public XAException(int errcode)
Create an XAException with a given error code.