| 
 | JavaTM 2 Platform Standard Ed. 5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.transaction.xa.XAException
public class XAException
The XAException is thrown by the Resource Manager (RM) to inform the Transaction Manager of an error encountered by the involved transaction.
| Field Summary | |
|---|---|
|  int | errorCodeThe error code with which to create the SystemException. | 
| static int | XA_HEURCOMThe transaction branch has been heuristically committed. | 
| static int | XA_HEURHAZThe transaction branch may have been heuristically completed. | 
| static int | XA_HEURMIXThe transaction branch has been heuristically committed and rolled back. | 
| static int | XA_HEURRBThe transaction branch has been heuristically rolled back. | 
| static int | XA_NOMIGRATEResumption must occur where the suspension occurred. | 
| static int | XA_RBBASEThe inclusive lower bound of the rollback codes. | 
| static int | XA_RBCOMMFAILIndicates that the rollback was caused by a communication failure. | 
| static int | XA_RBDEADLOCKA deadlock was detected. | 
| static int | XA_RBENDThe inclusive upper bound of the rollback error code. | 
| static int | XA_RBINTEGRITYA condition that violates the integrity of the resource was detected. | 
| static int | XA_RBOTHERThe resource manager rolled back the transaction branch for a reason not on this list. | 
| static int | XA_RBPROTOA protocol error occurred in the resource manager. | 
| static int | XA_RBROLLBACKIndicates that the rollback was caused by an unspecified reason. | 
| static int | XA_RBTIMEOUTA transaction branch took too long. | 
| static int | XA_RBTRANSIENTMay retry the transaction branch. | 
| static int | XA_RDONLYThe transaction branch was read-only and has been committed. | 
| static int | XA_RETRYRoutine returned with no effect and may be reissued. | 
| static int | XAER_ASYNCThere is an asynchronous operation already outstanding. | 
| static int | XAER_DUPIDThe XID already exists. | 
| static int | XAER_INVALInvalid arguments were given. | 
| static int | XAER_NOTAThe XID is not valid. | 
| static int | XAER_OUTSIDEThe resource manager is doing work outside a global transaction. | 
| static int | XAER_PROTORoutine was invoked in an inproper context. | 
| static int | XAER_RMERRA resource manager error has occurred in the transaction branch. | 
| static int | XAER_RMFAILResource manager is unavailable. | 
| Constructor Summary | |
|---|---|
| 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 inherited from class java.lang.Throwable | 
|---|
| fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public int errorCode
public static final int XA_RBBASE
public static final int XA_RBROLLBACK
public static final int XA_RBCOMMFAIL
public static final int XA_RBDEADLOCK
public static final int XA_RBINTEGRITY
public static final int XA_RBOTHER
public static final int XA_RBPROTO
public static final int XA_RBTIMEOUT
public static final int XA_RBTRANSIENT
public static final int XA_RBEND
public static final int XA_NOMIGRATE
public static final int XA_HEURHAZ
public static final int XA_HEURCOM
public static final int XA_HEURRB
public static final int XA_HEURMIX
public static final int XA_RETRY
public static final int XA_RDONLY
public static final int XAER_ASYNC
public static final int XAER_RMERR
public static final int XAER_NOTA
public static final int XAER_INVAL
public static final int XAER_PROTO
public static final int XAER_RMFAIL
public static final int XAER_DUPID
public static final int XAER_OUTSIDE
| Constructor Detail | 
|---|
public XAException()
public XAException(String s)
s - The String object containing the exception
                message.public XAException(int errcode)
errcode - The error code identifying the exception.| 
 | JavaTM 2 Platform Standard Ed. 5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.