XAException (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.transaction.xa Class XAException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.transaction.xa.XAException
所有已实现的接口:
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.

另请参见:
Serialized Form

字段摘要
 int errorCode
          The error code with which to create the SystemException.
static int XA_HEURCOM
          The transaction branch has been heuristically committed.
static int XA_HEURHAZ
          The transaction branch may have been heuristically completed.
static int XA_HEURMIX
          The transaction branch has been heuristically committed and rolled back.
static int XA_HEURRB
          The transaction branch has been heuristically rolled back.
static int XA_NOMIGRATE
          Resumption must occur where the suspension occurred.
static int XA_RBBASE
          The inclusive lower bound of the rollback codes.
static int XA_RBCOMMFAIL
          Indicates that the rollback was caused by a communication failure.
static int XA_RBDEADLOCK
          A deadlock was detected.
static int XA_RBEND
          The inclusive upper bound of the rollback error code.
static int XA_RBINTEGRITY
          A condition that violates the integrity of the resource was detected.
static int XA_RBOTHER
          The resource manager rolled back the transaction branch for a reason not on this list.
static int XA_RBPROTO
          A protocol error occurred in the resource manager.
static int XA_RBROLLBACK
          Indicates that the rollback was caused by an unspecified reason.
static int XA_RBTIMEOUT
          A transaction branch took too long.
static int XA_RBTRANSIENT
          May retry the transaction branch.
static int XA_RDONLY
          The transaction branch was read-only and has been committed.
static int XA_RETRY
          Routine returned with no effect and may be reissued.
static int XAER_ASYNC
          There is an asynchronous operation already outstanding.
static int XAER_DUPID
          The XID already exists.
static int XAER_INVAL
          Invalid arguments were given.
static int XAER_NOTA
          The XID is not valid.
static int XAER_OUTSIDE
          The resource manager is doing work outside a global transaction.
static int XAER_PROTO
          Routine was invoked in an improper context.
static int XAER_RMERR
          A resource manager error has occurred in the transaction branch.
static int XAER_RMFAIL
          Resource manager is unavailable.
 
构造器摘要
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.
 
方法摘要
 
类方法继承 java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
类方法继承 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

errorCode

public int errorCode
The error code with which to create the SystemException.


XA_RBBASE

public static final int XA_RBBASE
The inclusive lower bound of the rollback codes.

另请参见:
常量字段


XA_RBROLLBACK

public static final int XA_RBROLLBACK
Indicates that the rollback was caused by an unspecified reason.

另请参见:
常量字段


XA_RBCOMMFAIL

public static final int XA_RBCOMMFAIL
Indicates that the rollback was caused by a communication failure.

另请参见:
常量字段


XA_RBDEADLOCK

public static final int XA_RBDEADLOCK
A deadlock was detected.

另请参见:
常量字段


XA_RBINTEGRITY

public static final int XA_RBINTEGRITY
A condition that violates the integrity of the resource was detected.

另请参见:
常量字段


XA_RBOTHER

public static final int XA_RBOTHER
The resource manager rolled back the transaction branch for a reason not on this list.

另请参见:
常量字段


XA_RBPROTO

public static final int XA_RBPROTO
A protocol error occurred in the resource manager.

另请参见:
常量字段


XA_RBTIMEOUT

public static final int XA_RBTIMEOUT
A transaction branch took too long.

另请参见:
常量字段


XA_RBTRANSIENT

public static final int XA_RBTRANSIENT
May retry the transaction branch.

另请参见:
常量字段


XA_RBEND

public static final int XA_RBEND
The inclusive upper bound of the rollback error code.

另请参见:
常量字段


XA_NOMIGRATE

public static final int XA_NOMIGRATE
Resumption must occur where the suspension occurred.

另请参见:
常量字段


XA_HEURHAZ

public static final int XA_HEURHAZ
The transaction branch may have been heuristically completed.

另请参见:
常量字段


XA_HEURCOM

public static final int XA_HEURCOM
The transaction branch has been heuristically committed.

另请参见:
常量字段


XA_HEURRB

public static final int XA_HEURRB
The transaction branch has been heuristically rolled back.

另请参见:
常量字段


XA_HEURMIX

public static final int XA_HEURMIX
The transaction branch has been heuristically committed and rolled back.

另请参见:
常量字段


XA_RETRY

public static final int XA_RETRY
Routine returned with no effect and may be reissued.

另请参见:
常量字段


XA_RDONLY

public static final int XA_RDONLY
The transaction branch was read-only and has been committed.

另请参见:
常量字段


XAER_ASYNC

public static final int XAER_ASYNC
There is an asynchronous operation already outstanding.

另请参见:
常量字段


XAER_RMERR

public static final int XAER_RMERR
A resource manager error has occurred in the transaction branch.

另请参见:
常量字段


XAER_NOTA

public static final int XAER_NOTA
The XID is not valid.

另请参见:
常量字段


XAER_INVAL

public static final int XAER_INVAL
Invalid arguments were given.

另请参见:
常量字段


XAER_PROTO

public static final int XAER_PROTO
Routine was invoked in an improper context.

另请参见:
常量字段


XAER_RMFAIL

public static final int XAER_RMFAIL
Resource manager is unavailable.

另请参见:
常量字段


XAER_DUPID

public static final int XAER_DUPID
The XID already exists.

另请参见:
常量字段


XAER_OUTSIDE

public static final int XAER_OUTSIDE
The resource manager is doing work outside a global transaction.

另请参见:
常量字段

构造器详细信息

XAException

public XAException()
Create an XAException.


XAException

public XAException(String s)
Create an XAException with a given string.

参数:
s - The String object containing the exception message.


XAException

public XAException(int errcode)
Create an XAException with a given error code.

参数:
errcode - The error code identifying the exception.


Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.