java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.transaction.xa.XAException
- All Implemented Interfaces:
Serializable
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
- See Also:
- Serialized Form
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe error code with which to create the SystemException.static intThe transaction branch has been heuristically committed.static intThe transaction branch may have been heuristically completed.static intThe transaction branch has been heuristically committed and rolled back.static intThe transaction branch has been heuristically rolled back.static intResumption must occur where the suspension occurred.static intThe inclusive lower bound of the rollback codes.static intIndicates that the rollback was caused by a communication failure.static intA deadlock was detected.static intThe inclusive upper bound of the rollback error code.static intA condition that violates the integrity of the resource was detected.static intThe resource manager rolled back the transaction branch for a reason not on this list.static intA protocol error occurred in the resource manager.static intIndicates that the rollback was caused by an unspecified reason.static intA transaction branch took too long.static intMay retry the transaction branch.static intThe transaction branch was read-only and has been committed.static intRoutine returned with no effect and may be reissued.static intThere is an asynchronous operation already outstanding.static intThe XID already exists.static intInvalid arguments were given.static intThe XID is not valid.static intThe resource manager is doing work outside a global transaction.static intRoutine was invoked in an inproper context.static intA resource manager error has occurred in the transaction branch.static intResource manager is unavailable. -
Constructor Summary
ConstructorsConstructorDescriptionCreate an XAException.XAException(int errcode)Create an XAException with a given error code.XAException(String s)Create an XAException with a given string. -
Method Summary
Methods declared in class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
errorCode
public int errorCodeThe error code with which to create the SystemException. -
XA_RBBASE
public static final int XA_RBBASEThe inclusive lower bound of the rollback codes.- See Also:
- Constant Field Values
-
XA_RBROLLBACK
public static final int XA_RBROLLBACKIndicates that the rollback was caused by an unspecified reason.- See Also:
- Constant Field Values
-
XA_RBCOMMFAIL
public static final int XA_RBCOMMFAILIndicates that the rollback was caused by a communication failure.- See Also:
- Constant Field Values
-
XA_RBDEADLOCK
public static final int XA_RBDEADLOCKA deadlock was detected.- See Also:
- Constant Field Values
-
XA_RBINTEGRITY
public static final int XA_RBINTEGRITYA condition that violates the integrity of the resource was detected.- See Also:
- Constant Field Values
-
XA_RBOTHER
public static final int XA_RBOTHERThe resource manager rolled back the transaction branch for a reason not on this list.- See Also:
- Constant Field Values
-
XA_RBPROTO
public static final int XA_RBPROTOA protocol error occurred in the resource manager.- See Also:
- Constant Field Values
-
XA_RBTIMEOUT
public static final int XA_RBTIMEOUTA transaction branch took too long.- See Also:
- Constant Field Values
-
XA_RBTRANSIENT
public static final int XA_RBTRANSIENTMay retry the transaction branch.- See Also:
- Constant Field Values
-
XA_RBEND
public static final int XA_RBENDThe inclusive upper bound of the rollback error code.- See Also:
- Constant Field Values
-
XA_NOMIGRATE
public static final int XA_NOMIGRATEResumption must occur where the suspension occurred.- See Also:
- Constant Field Values
-
XA_HEURHAZ
public static final int XA_HEURHAZThe transaction branch may have been heuristically completed.- See Also:
- Constant Field Values
-
XA_HEURCOM
public static final int XA_HEURCOMThe transaction branch has been heuristically committed.- See Also:
- Constant Field Values
-
XA_HEURRB
public static final int XA_HEURRBThe transaction branch has been heuristically rolled back.- See Also:
- Constant Field Values
-
XA_HEURMIX
public static final int XA_HEURMIXThe transaction branch has been heuristically committed and rolled back.- See Also:
- Constant Field Values
-
XA_RETRY
public static final int XA_RETRYRoutine returned with no effect and may be reissued.- See Also:
- Constant Field Values
-
XA_RDONLY
public static final int XA_RDONLYThe transaction branch was read-only and has been committed.- See Also:
- Constant Field Values
-
XAER_ASYNC
public static final int XAER_ASYNCThere is an asynchronous operation already outstanding.- See Also:
- Constant Field Values
-
XAER_RMERR
public static final int XAER_RMERRA resource manager error has occurred in the transaction branch.- See Also:
- Constant Field Values
-
XAER_NOTA
public static final int XAER_NOTAThe XID is not valid.- See Also:
- Constant Field Values
-
XAER_INVAL
public static final int XAER_INVALInvalid arguments were given.- See Also:
- Constant Field Values
-
XAER_PROTO
public static final int XAER_PROTORoutine was invoked in an inproper context.- See Also:
- Constant Field Values
-
XAER_RMFAIL
public static final int XAER_RMFAILResource manager is unavailable.- See Also:
- Constant Field Values
-
XAER_DUPID
public static final int XAER_DUPIDThe XID already exists.- See Also:
- Constant Field Values
-
XAER_OUTSIDE
public static final int XAER_OUTSIDEThe resource manager is doing work outside a global transaction.- See Also:
- Constant Field Values
-
-
Constructor Details
-
XAException
public XAException()Create an XAException. -
XAException
Create an XAException with a given string.- Parameters:
s- TheStringobject containing the exception message.
-
XAException
public XAException(int errcode)Create an XAException with a given error code.- Parameters:
errcode- The error code identifying the exception.
-