Package org.synchronoss.cpo.core.jta
Enum Class CpoXaError
- All Implemented Interfaces:
Serializable,Comparable<CpoXaError>,Constable
The XA error codes used by Cpo, mirroring the
int constants declared on XAException so error codes can be passed around as a type-safe enum instead of a bare
int.- Author:
- dberry
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMirrorsXAException.XA_HEURCOM: the transaction branch has been heuristically committed.MirrorsXAException.XA_HEURHAZ: the transaction branch may have been heuristically completed.MirrorsXAException.XA_HEURMIX: the transaction branch has been heuristically committed and rolled back.MirrorsXAException.XA_HEURRB: the transaction branch has been heuristically rolled back.MirrorsXAException.XA_NOMIGRATE: resumption must occur where the suspension occurred.MirrorsXAException.XA_RBBASE: the inclusive lower bound of the rollback codes.MirrorsXAException.XA_RBCOMMFAIL: the rollback was caused by a communication failure.MirrorsXAException.XA_RBDEADLOCK: a deadlock was detected.MirrorsXAException.XA_RBEND: the inclusive upper bound of the rollback codes.MirrorsXAException.XA_RBINTEGRITY: a condition that violates the integrity of the resource was detected.MirrorsXAException.XA_RBOTHER: the resource manager rolled back for a reason not on this list.MirrorsXAException.XA_RBPROTO: a protocol error occurred in the resource manager.MirrorsXAException.XA_RBROLLBACK: the rollback was caused by an unspecified reason.MirrorsXAException.XA_RBTIMEOUT: a transaction branch took too long.MirrorsXAException.XA_RBTRANSIENT: may retry the transaction branch.MirrorsXAException.XA_RDONLY: the transaction branch was read-only and has been committed.MirrorsXAException.XA_RETRY: routine returned with no effect and may be reissued.MirrorsXAException.XAER_ASYNC: an asynchronous operation is already outstanding.MirrorsXAException.XAER_DUPID: theXidalready exists.MirrorsXAException.XAER_INVAL: invalid arguments were given.MirrorsXAException.XAER_NOTA: theXidis not valid.MirrorsXAException.XAER_OUTSIDE: the resource manager is doing work outside a global transaction.MirrorsXAException.XAER_PROTO: the routine was invoked in an improper context.MirrorsXAException.XAER_RMERR: a resource manager error occurred.MirrorsXAException.XAER_RMFAIL: the resource manager has failed and is unavailable. -
Method Summary
Modifier and TypeMethodDescriptionstatic XAExceptioncreateXAException(CpoXaError errCode, String errString) Builds anXAExceptioncarrying a message that embeds this error code's name and numeric value alongside the caller-supplied detail text.static CpoXaErrorReturns the enum constant of this class with the specified name.static CpoXaError[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
XA_RBBASE
MirrorsXAException.XA_RBBASE: the inclusive lower bound of the rollback codes. -
XA_RBROLLBACK
MirrorsXAException.XA_RBROLLBACK: the rollback was caused by an unspecified reason. -
XA_RBCOMMFAIL
MirrorsXAException.XA_RBCOMMFAIL: the rollback was caused by a communication failure. -
XA_RBDEADLOCK
MirrorsXAException.XA_RBDEADLOCK: a deadlock was detected. -
XA_RBINTEGRITY
MirrorsXAException.XA_RBINTEGRITY: a condition that violates the integrity of the resource was detected. -
XA_RBOTHER
MirrorsXAException.XA_RBOTHER: the resource manager rolled back for a reason not on this list. -
XA_RBPROTO
MirrorsXAException.XA_RBPROTO: a protocol error occurred in the resource manager. -
XA_RBTIMEOUT
MirrorsXAException.XA_RBTIMEOUT: a transaction branch took too long. -
XA_RBTRANSIENT
MirrorsXAException.XA_RBTRANSIENT: may retry the transaction branch. -
XA_RBEND
MirrorsXAException.XA_RBEND: the inclusive upper bound of the rollback codes. -
XA_NOMIGRATE
MirrorsXAException.XA_NOMIGRATE: resumption must occur where the suspension occurred. -
XA_HEURHAZ
MirrorsXAException.XA_HEURHAZ: the transaction branch may have been heuristically completed. -
XA_HEURCOM
MirrorsXAException.XA_HEURCOM: the transaction branch has been heuristically committed. -
XA_HEURRB
MirrorsXAException.XA_HEURRB: the transaction branch has been heuristically rolled back. -
XA_HEURMIX
MirrorsXAException.XA_HEURMIX: the transaction branch has been heuristically committed and rolled back. -
XA_RETRY
MirrorsXAException.XA_RETRY: routine returned with no effect and may be reissued. -
XA_RDONLY
MirrorsXAException.XA_RDONLY: the transaction branch was read-only and has been committed. -
XAER_ASYNC
MirrorsXAException.XAER_ASYNC: an asynchronous operation is already outstanding. -
XAER_RMERR
MirrorsXAException.XAER_RMERR: a resource manager error occurred. -
XAER_NOTA
MirrorsXAException.XAER_NOTA: theXidis not valid. -
XAER_INVAL
MirrorsXAException.XAER_INVAL: invalid arguments were given. -
XAER_PROTO
MirrorsXAException.XAER_PROTO: the routine was invoked in an improper context. -
XAER_RMFAIL
MirrorsXAException.XAER_RMFAIL: the resource manager has failed and is unavailable. -
XAER_DUPID
MirrorsXAException.XAER_DUPID: theXidalready exists. -
XAER_OUTSIDE
MirrorsXAException.XAER_OUTSIDE: the resource manager is doing work outside a global transaction.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
createXAException
Builds anXAExceptioncarrying a message that embeds this error code's name and numeric value alongside the caller-supplied detail text.- Parameters:
errCode- The error code for the XAExceptionerrString- The message for the XAException- Returns:
- The XAException
-