Serializable
public class XAException extends Exception
Modifier and Type | Field | Description |
---|---|---|
int |
errorCode |
The error code with which to create the SystemException. |
static final int |
XA_HEURCOM |
The transaction branch has been heuristically committed. |
static final int |
XA_HEURHAZ |
The transaction branch may have been heuristically completed. |
static final int |
XA_HEURMIX |
The transaction branch has been heuristically committed and rolled back. |
static final int |
XA_HEURRB |
The transaction branch has been heuristically rolled back. |
static final int |
XA_NOMIGRATE |
Resumption must occur where the suspension occurred. |
static final int |
XA_RBBASE |
The inclusive lower bound of the rollback codes. |
static final int |
XA_RBCOMMFAIL |
Indicates that the rollback was caused by a communication failure. |
static final int |
XA_RBDEADLOCK |
A deadlock was detected. |
static final int |
XA_RBEND |
The inclusive upper bound of the rollback error code. |
static final int |
XA_RBINTEGRITY |
A condition that violates the integrity of the resource was detected. |
static final int |
XA_RBOTHER |
The resource manager rolled back the transaction branch for a reason not on this list. |
static final int |
XA_RBPROTO |
A protocol error occurred in the resource manager. |
static final int |
XA_RBROLLBACK |
Indicates that the rollback was caused by an unspecified reason. |
static final int |
XA_RBTIMEOUT |
A transaction branch took too long. |
static final int |
XA_RBTRANSIENT |
May retry the transaction branch. |
static final int |
XA_RDONLY |
The transaction branch was read-only and has been committed. |
static final int |
XA_RETRY |
Routine returned with no effect and may be reissued. |
static final int |
XAER_ASYNC |
There is an asynchronous operation already outstanding. |
static final int |
XAER_DUPID |
The XID already exists. |
static final int |
XAER_INVAL |
Invalid arguments were given. |
static final int |
XAER_NOTA |
The XID is not valid. |
static final int |
XAER_OUTSIDE |
The resource manager is doing work outside a global transaction. |
static final int |
XAER_PROTO |
Routine was invoked in an improper context. |
static final int |
XAER_RMERR |
A resource manager error has occurred in the transaction branch. |
static final int |
XAER_RMFAIL |
Resource manager is unavailable. |
Constructor | Description |
---|---|
XAException() |
Create an XAException. |
XAException |
Create an XAException with a given error code. |
XAException |
Create an XAException with a given string. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
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
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.
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.transaction.xa/javax/transaction/xa/XAException.html