- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- javax.transaction.xa.XAException
 
 
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class XAException extends Exception 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 SummaryFields Modifier and Type Field Description interrorCodeThe error code with which to create the SystemException.static intXA_HEURCOMThe transaction branch has been heuristically committed.static intXA_HEURHAZThe transaction branch may have been heuristically completed.static intXA_HEURMIXThe transaction branch has been heuristically committed and rolled back.static intXA_HEURRBThe transaction branch has been heuristically rolled back.static intXA_NOMIGRATEResumption must occur where the suspension occurred.static intXA_RBBASEThe inclusive lower bound of the rollback codes.static intXA_RBCOMMFAILIndicates that the rollback was caused by a communication failure.static intXA_RBDEADLOCKA deadlock was detected.static intXA_RBENDThe inclusive upper bound of the rollback error code.static intXA_RBINTEGRITYA condition that violates the integrity of the resource was detected.static intXA_RBOTHERThe resource manager rolled back the transaction branch for a reason not on this list.static intXA_RBPROTOA protocol error occurred in the resource manager.static intXA_RBROLLBACKIndicates that the rollback was caused by an unspecified reason.static intXA_RBTIMEOUTA transaction branch took too long.static intXA_RBTRANSIENTMay retry the transaction branch.static intXA_RDONLYThe transaction branch was read-only and has been committed.static intXA_RETRYRoutine returned with no effect and may be reissued.static intXAER_ASYNCThere is an asynchronous operation already outstanding.static intXAER_DUPIDThe XID already exists.static intXAER_INVALInvalid arguments were given.static intXAER_NOTAThe XID is not valid.static intXAER_OUTSIDEThe resource manager is doing work outside a global transaction.static intXAER_PROTORoutine was invoked in an inproper context.static intXAER_RMERRA resource manager error has occurred in the transaction branch.static intXAER_RMFAILResource manager is unavailable.
 - 
Constructor SummaryConstructors Constructor Description XAException()Create 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.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
- 
 
- 
- 
- 
Field Detail- 
errorCodepublic int errorCode The error code with which to create the SystemException.
 - 
XA_RBBASEpublic static final int XA_RBBASE The inclusive lower bound of the rollback codes.- See Also:
- Constant Field Values
 
 - 
XA_RBROLLBACKpublic static final int XA_RBROLLBACK Indicates that the rollback was caused by an unspecified reason.- See Also:
- Constant Field Values
 
 - 
XA_RBCOMMFAILpublic static final int XA_RBCOMMFAIL Indicates that the rollback was caused by a communication failure.- See Also:
- Constant Field Values
 
 - 
XA_RBDEADLOCKpublic static final int XA_RBDEADLOCK A deadlock was detected.- See Also:
- Constant Field Values
 
 - 
XA_RBINTEGRITYpublic static final int XA_RBINTEGRITY A condition that violates the integrity of the resource was detected.- See Also:
- Constant Field Values
 
 - 
XA_RBOTHERpublic static final int XA_RBOTHER The resource manager rolled back the transaction branch for a reason not on this list.- See Also:
- Constant Field Values
 
 - 
XA_RBPROTOpublic static final int XA_RBPROTO A protocol error occurred in the resource manager.- See Also:
- Constant Field Values
 
 - 
XA_RBTIMEOUTpublic static final int XA_RBTIMEOUT A transaction branch took too long.- See Also:
- Constant Field Values
 
 - 
XA_RBTRANSIENTpublic static final int XA_RBTRANSIENT May retry the transaction branch.- See Also:
- Constant Field Values
 
 - 
XA_RBENDpublic static final int XA_RBEND The inclusive upper bound of the rollback error code.- See Also:
- Constant Field Values
 
 - 
XA_NOMIGRATEpublic static final int XA_NOMIGRATE Resumption must occur where the suspension occurred.- See Also:
- Constant Field Values
 
 - 
XA_HEURHAZpublic static final int XA_HEURHAZ The transaction branch may have been heuristically completed.- See Also:
- Constant Field Values
 
 - 
XA_HEURCOMpublic static final int XA_HEURCOM The transaction branch has been heuristically committed.- See Also:
- Constant Field Values
 
 - 
XA_HEURRBpublic static final int XA_HEURRB The transaction branch has been heuristically rolled back.- See Also:
- Constant Field Values
 
 - 
XA_HEURMIXpublic static final int XA_HEURMIX The transaction branch has been heuristically committed and rolled back.- See Also:
- Constant Field Values
 
 - 
XA_RETRYpublic static final int XA_RETRY Routine returned with no effect and may be reissued.- See Also:
- Constant Field Values
 
 - 
XA_RDONLYpublic static final int XA_RDONLY The transaction branch was read-only and has been committed.- See Also:
- Constant Field Values
 
 - 
XAER_ASYNCpublic static final int XAER_ASYNC There is an asynchronous operation already outstanding.- See Also:
- Constant Field Values
 
 - 
XAER_RMERRpublic static final int XAER_RMERR A resource manager error has occurred in the transaction branch.- See Also:
- Constant Field Values
 
 - 
XAER_NOTApublic static final int XAER_NOTA The XID is not valid.- See Also:
- Constant Field Values
 
 - 
XAER_INVALpublic static final int XAER_INVAL Invalid arguments were given.- See Also:
- Constant Field Values
 
 - 
XAER_PROTOpublic static final int XAER_PROTO Routine was invoked in an inproper context.- See Also:
- Constant Field Values
 
 - 
XAER_RMFAILpublic static final int XAER_RMFAIL Resource manager is unavailable.- See Also:
- Constant Field Values
 
 - 
XAER_DUPIDpublic static final int XAER_DUPID The XID already exists.- See Also:
- Constant Field Values
 
 - 
XAER_OUTSIDEpublic static final int XAER_OUTSIDE The resource manager is doing work outside a global transaction.- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
XAExceptionpublic XAException() Create an XAException.
 - 
XAExceptionpublic XAException(String s) Create an XAException with a given string.- Parameters:
- s- The- Stringobject containing the exception message.
 
 - 
XAExceptionpublic XAException(int errcode) Create an XAException with a given error code.- Parameters:
- errcode- The error code identifying the exception.
 
 
- 
 
-