public class javax.transaction.xa
XAException


Hide details Login
Java SE 6
  
Extends: Throwable > Exception

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

Fields
public int errorCode
The error code with which to create the SystemException.
serialThe error code for the exception
final public static int XA_RBBASE
The inclusive lower bound of the rollback codes.
final public static int XA_RBROLLBACK
Indicates that the rollback was caused by an unspecified reason.
final public static int XA_RBCOMMFAIL
Indicates that the rollback was caused by a communication failure.
final public static int XA_RBDEADLOCK
A deadlock was detected.
final public static int XA_RBINTEGRITY
A condition that violates the integrity of the resource was detected.
final public static int XA_RBOTHER
The resource manager rolled back the transaction branch for a reason not on this list.
final public static int XA_RBPROTO
A protocol error occurred in the resource manager.
final public static int XA_RBTIMEOUT
A transaction branch took too long.
final public static int XA_RBTRANSIENT
May retry the transaction branch.
final public static int XA_RBEND
The inclusive upper bound of the rollback error code.
final public static int XA_NOMIGRATE
Resumption must occur where the suspension occurred.
final public static int XA_HEURHAZ
The transaction branch may have been heuristically completed.
final public static int XA_HEURCOM
The transaction branch has been heuristically committed.
final public static int XA_HEURRB
The transaction branch has been heuristically rolled back.
final public static int XA_HEURMIX
The transaction branch has been heuristically committed and rolled back.
final public static int XA_RETRY
Routine returned with no effect and may be reissued.
final public static int XA_RDONLY
The transaction branch was read-only and has been committed.
final public static int XAER_ASYNC
There is an asynchronous operation already outstanding.
final public static int XAER_RMERR
A resource manager error has occurred in the transaction branch.
final public static int XAER_NOTA
The XID is not valid.
final public static int XAER_INVAL
Invalid arguments were given.
final public static int XAER_PROTO
Routine was invoked in an inproper context.
final public static int XAER_RMFAIL
Resource manager is unavailable.
final public static int XAER_DUPID
The XID already exists.
final public static int XAER_OUTSIDE
The resource manager is doing work outside a global transaction.

Constructors
public XAException()
Create an XAException.
public XAException(String s)
Create an XAException with a given string.
sThe String object containing the exception message.
public XAException(int errcode)
Create an XAException with a given error code.
errcodeThe error code identifying the exception.