TransactionInProgressException (Java EE 5)

Java EE API


javax.jms Class TransactionInProgressException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.jms.JMSException
              extended by javax.jms.TransactionInProgressException
All Implemented Interfaces:
Serializable

public class TransactionInProgressException
extends JMSException

Extends: Throwable > Exception > JMSException

在某个操作因事务正在进行而无效时抛出此异常。例如,当会话是分布式事务的一部分时,尝试调用 Session.commit 应抛出 TransactionInProgressException

英文文档:

This exception is thrown when an operation is invalid because a transaction is in progress. For instance, an attempt to call Session.commit when a session is part of a distributed transaction should throw a TransactionInProgressException.

Version:
26 August 1998
Author:
Rahul Sharma
See Also:
Serialized Form

Constructor Summary
 
Method Summary
 
Methods inherited from class javax.jms.JMSException
 
Methods inherited from class java.lang.Throwable
 
Methods inherited from class java.lang.Object
 

Constructor Detail

public TransactionInProgressException(String reason, String errorCode)
构造带指定原因和错误代码的 TransactionInProgressException
reason 对异常的描述
errorCode 指定特定于供应商的错误代码的字符串
英文文档:

TransactionInProgressException

public TransactionInProgressException(String reason,
                                      String errorCode)
Constructs a TransactionInProgressException with the specified reason and error code.

Parameters:
reason - a description of the exception
errorCode - a string specifying the vendor-specific error code


public TransactionInProgressException(String reason)
构造带指定原因的 TransactionInProgressException。错误代码默认为 null。
reason 对异常的描述
英文文档:

TransactionInProgressException

public TransactionInProgressException(String reason)
Constructs a TransactionInProgressException with the specified reason. The error code defaults to null.

Parameters:
reason - a description of the exception



Submit a bug or feature

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

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

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