XAException (Java EE 5)

Java EE API


javax.transaction.xa Class XAException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.transaction.xa.XAException
All Implemented Interfaces:
Serializable

public class XAException
extends Exception

Extends: Throwable > Exception

资源管理器 (RM) 抛出 XAException,以通知事务管理器涉及的事务遇到错误。
英文文档:

The XAException is thrown by the Resource Manager (RM) to inform the Transaction Manager of an error encountered by the involved transaction.

See Also:
Serialized Form

Field Summary
 int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
 
Constructor Summary
 
Method Summary
 
Methods inherited from class java.lang.Throwable
 
Methods inherited from class java.lang.Object
 

Field Detail

英文文档:

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.

See Also:
Constant Field Values


英文文档:

XA_RBROLLBACK

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

See Also:
Constant Field Values


英文文档:

XA_RBCOMMFAIL

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

See Also:
Constant Field Values


英文文档:

XA_RBDEADLOCK

public static final int XA_RBDEADLOCK
A deadlock was detected.

See Also:
Constant Field Values


英文文档:

XA_RBINTEGRITY

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

See Also:
Constant Field Values


英文文档:

XA_RBOTHER

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

See Also:
Constant Field Values


英文文档:

XA_RBPROTO

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

See Also:
Constant Field Values


英文文档:

XA_RBTIMEOUT

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

See Also:
Constant Field Values


英文文档:

XA_RBTRANSIENT

public static final int XA_RBTRANSIENT
May retry the transaction branch.

See Also:
Constant Field Values


英文文档:

XA_RBEND

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

See Also:
Constant Field Values


英文文档:

XA_NOMIGRATE

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

See Also:
Constant Field Values


英文文档:

XA_HEURHAZ

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

See Also:
Constant Field Values


英文文档:

XA_HEURCOM

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

See Also:
Constant Field Values


英文文档:

XA_HEURRB

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

See Also:
Constant Field Values


英文文档:

XA_HEURMIX

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

See Also:
Constant Field Values


英文文档:

XA_RETRY

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

See Also:
Constant Field Values


英文文档:

XA_RDONLY

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

See Also:
Constant Field Values


英文文档:

XAER_ASYNC

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

See Also:
Constant Field Values


英文文档:

XAER_RMERR

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

See Also:
Constant Field Values


英文文档:

XAER_NOTA

public static final int XAER_NOTA
The XID is not valid.

See Also:
Constant Field Values


英文文档:

XAER_INVAL

public static final int XAER_INVAL
Invalid arguments were given.

See Also:
Constant Field Values


英文文档:

XAER_PROTO

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

See Also:
Constant Field Values


英文文档:

XAER_RMFAIL

public static final int XAER_RMFAIL
Resource manager is unavailable.

See Also:
Constant Field Values


英文文档:

XAER_DUPID

public static final int XAER_DUPID
The XID already exists.

See Also:
Constant Field Values


英文文档:

XAER_OUTSIDE

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

See Also:
Constant Field Values

Constructor Detail

public XAException()
创建一个 XAException。
英文文档:

XAException

public XAException()
Create an XAException.


public XAException(String s)
创建一个具有给定字符串的 XAException。
s 包含异常消息的 String 对象。
英文文档:

XAException

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

Parameters:
s - The String object containing the exception message.


public XAException(int errcode)
创建一个具有给定错误代码的 XAException。
errcode 标识异常的错误代码。
英文文档:

XAException

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

Parameters:
errcode - The error code identifying the exception.



Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!