|
||||||||||
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
The XAException is thrown by resource managers in case of problems.
Field Summary | |
int |
errorCode
The error code. |
static int |
XA_HEURCOM
Error code indicating that a heuristic commit decision was made. |
static int |
XA_HEURHAZ
Error code indicating that a heuristic decision may have been made. |
static int |
XA_HEURMIX
Error code indicating that a heuristic mixed decision was made. |
static int |
XA_HEURRB
Error code indicating that a heuristic rollback decision was made. |
static int |
XA_NOMIGRATE
Error code indicating that the transaction resumption must happen where the suspension occurred. |
static int |
XA_RBBASE
This is not an error code, but the same as the rollback error code with the lowest number. |
static int |
XA_RBCOMMFAIL
Rollback error code indicating that the rollback happened due to a communications failure. |
static int |
XA_RBDEADLOCK
Rollback error code indicating that the rollback happened because deadlock was detected. |
static int |
XA_RBEND
This is not an error code, but the same as the rollback error code with the highest number. |
static int |
XA_RBINTEGRITY
Rollback error code indicating that the rollback happened because an internal integrity check failed. |
static int |
XA_RBOTHER
Rollback error code indicating that the rollback happened for some reason not fitting any of the other rollback error codes. |
static int |
XA_RBPROTO
Rollback error code indicating that the rollback happened due to a protocol error in the resource manager. |
static int |
XA_RBROLLBACK
Rollback error code indicating that the rollback happened for an unspecified reason. |
static int |
XA_RBTIMEOUT
Rollback error code indicating that the rollback happened because of a timeout. |
static int |
XA_RBTRANSIENT
Rollback error code indicating that the rollback happened due to a transient failure. |
static int |
XA_RDONLY
Error code indicating that the transaction branch was read-only, and has already been committed. |
static int |
XA_RETRY
Error code indicating that the method invoked returned without having any effect, and that it may be invoked again. |
static int |
XAER_ASYNC
Error code indicating that an asynchronous operation is outstanding. |
static int |
XAER_DUPID
Error code indicating that a Xid given as an argument is already known to the resource manager. |
static int |
XAER_INVAL
Error code indicating that invalid arguments were passed. |
static int |
XAER_NOTA
Error code indicating that an Xid (src) is not valid. |
static int |
XAER_OUTSIDE
Error code indicating that the resource manager is doing work outside the global transaction. |
static int |
XAER_PROTO
Error code indicating a protocol error. |
static int |
XAER_RMERR
Error code indicating that a resource manager error has occurred. |
static int |
XAER_RMFAIL
Error code indicating that the resource manager has failed and is not available. |
Constructor Summary | |
XAException()
Creates new XAException without detail message. |
|
XAException(int errorCode)
Constructs an XAException for the specified error code. |
|
XAException(java.lang.String msg)
Constructs an XAException with the specified detail
message. |
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 XAER_ASYNC
public static final int XAER_RMERR
public static final int XAER_NOTA
Xid
(src) is not valid.
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
public static final int XA_RDONLY
public static final int XA_RETRY
public static final int XA_HEURMIX
public static final int XA_HEURRB
public static final int XA_HEURCOM
public static final int XA_HEURHAZ
public static final int XA_NOMIGRATE
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
Constructor Detail |
public XAException()
XAException
without detail message.
public XAException(java.lang.String msg)
XAException
with the specified detail
message.
msg
- the detail message.public XAException(int errorCode)
XAException
for the specified error code.
errorCode
- the error code.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |