APIdia Launch Partner
Top Description Fields Constructors
javax.transaction.xa

public Class XAException

extends Exception
Class Inheritance

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

Field Summary

Modifier and TypeField and Description
public int
errorCode

The error code with which to create the SystemException.

private static final long
serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Specify serialVersionUID for backward compatibility
public static final int
XA_HEURCOM

The transaction branch has been heuristically committed.

public static final int
XA_HEURHAZ

The transaction branch may have been heuristically completed.

public static final int
XA_HEURMIX

The transaction branch has been heuristically committed and rolled back.

public static final int
XA_HEURRB

The transaction branch has been heuristically rolled back.

public static final int
XA_NOMIGRATE

Resumption must occur where the suspension occurred.

public static final int
XA_RBBASE

The inclusive lower bound of the rollback codes.

public static final int
XA_RBCOMMFAIL

Indicates that the rollback was caused by a communication failure.

public static final int
XA_RBDEADLOCK

A deadlock was detected.

public static final int
XA_RBEND

The inclusive upper bound of the rollback error code.

public static final int
XA_RBINTEGRITY

A condition that violates the integrity of the resource was detected.

public static final int
XA_RBOTHER

The resource manager rolled back the transaction branch for a reason not on this list.

public static final int
XA_RBPROTO

A protocol error occurred in the resource manager.

public static final int
XA_RBROLLBACK

Indicates that the rollback was caused by an unspecified reason.

public static final int
XA_RBTIMEOUT

A transaction branch took too long.

public static final int
XA_RBTRANSIENT

May retry the transaction branch.

public static final int
XA_RDONLY

The transaction branch was read-only and has been committed.

public static final int
XA_RETRY

Routine returned with no effect and may be reissued.

public static final int
XAER_ASYNC

There is an asynchronous operation already outstanding.

public static final int
XAER_DUPID

The XID already exists.

public static final int
XAER_INVAL

Invalid arguments were given.

public static final int
XAER_NOTA

The XID is not valid.

public static final int
XAER_OUTSIDE

The resource manager is doing work outside a global transaction.

public static final int
XAER_PROTO

Routine was invoked in an improper context.

public static final int
XAER_RMERR

A resource manager error has occurred in the transaction branch.

public static final int
XAER_RMFAIL

Resource manager is unavailable.

Constructor Summary

AccessConstructor and Description
public
XAException()

Create an XAException.

public
XAException(String
The String object containing the exception message.
s
)

Create an XAException with a given string.

public
XAException(int
The error code identifying the exception.
errcode
)

Create an XAException with a given error code.

Field Detail

errorCodeback to summary
public int errorCode

The error code with which to create the SystemException.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Specify serialVersionUID for backward compatibility

XA_HEURCOMback to summary
public static final int XA_HEURCOM

The transaction branch has been heuristically committed.

XA_HEURHAZback to summary
public static final int XA_HEURHAZ

The transaction branch may have been heuristically completed.

XA_HEURMIXback to summary
public static final int XA_HEURMIX

The transaction branch has been heuristically committed and rolled back.

XA_HEURRBback to summary
public static final int XA_HEURRB

The transaction branch has been heuristically rolled back.

XA_NOMIGRATEback to summary
public static final int XA_NOMIGRATE

Resumption must occur where the suspension occurred.

XA_RBBASEback to summary
public static final int XA_RBBASE

The inclusive lower bound of the rollback codes.

XA_RBCOMMFAILback to summary
public static final int XA_RBCOMMFAIL

Indicates that the rollback was caused by a communication failure.

XA_RBDEADLOCKback to summary
public static final int XA_RBDEADLOCK

A deadlock was detected.

XA_RBENDback to summary
public static final int XA_RBEND

The inclusive upper bound of the rollback error code.

XA_RBINTEGRITYback to summary
public static final int XA_RBINTEGRITY

A condition that violates the integrity of the resource was detected.

XA_RBOTHERback to summary
public static final int XA_RBOTHER

The resource manager rolled back the transaction branch for a reason not on this list.

XA_RBPROTOback to summary
public static final int XA_RBPROTO

A protocol error occurred in the resource manager.

XA_RBROLLBACKback to summary
public static final int XA_RBROLLBACK

Indicates that the rollback was caused by an unspecified reason.

XA_RBTIMEOUTback to summary
public static final int XA_RBTIMEOUT

A transaction branch took too long.

XA_RBTRANSIENTback to summary
public static final int XA_RBTRANSIENT

May retry the transaction branch.

XA_RDONLYback to summary
public static final int XA_RDONLY

The transaction branch was read-only and has been committed.

XA_RETRYback to summary
public static final int XA_RETRY

Routine returned with no effect and may be reissued.

XAER_ASYNCback to summary
public static final int XAER_ASYNC

There is an asynchronous operation already outstanding.

XAER_DUPIDback to summary
public static final int XAER_DUPID

The XID already exists.

XAER_INVALback to summary
public static final int XAER_INVAL

Invalid arguments were given.

XAER_NOTAback to summary
public static final int XAER_NOTA

The XID is not valid.

XAER_OUTSIDEback to summary
public static final int XAER_OUTSIDE

The resource manager is doing work outside a global transaction.

XAER_PROTOback to summary
public static final int XAER_PROTO

Routine was invoked in an improper context.

XAER_RMERRback to summary
public static final int XAER_RMERR

A resource manager error has occurred in the transaction branch.

XAER_RMFAILback to summary
public static final int XAER_RMFAIL

Resource manager is unavailable.

Constructor Detail

XAExceptionback to summary
public XAException()

Create an XAException.

XAExceptionback to summary
public XAException(String s)

Create an XAException with a given string.

Parameters
s:String

The String object containing the exception message.

XAExceptionback to summary
public XAException(int errcode)

Create an XAException with a given error code.

Parameters
errcode:int

The error code identifying the exception.