01: /*
02: * @(#)TransactionInProgressException.java 1.8 02/04/09
03: *
04: * Copyright 1997-2002 Sun Microsystems, Inc. All Rights Reserved.
05: *
06: * SUN PROPRIETARY/CONFIDENTIAL.
07: * This software is the proprietary information of Sun Microsystems, Inc.
08: * Use is subject to license terms.
09: *
10: */
11:
12: package javax.jms;
13:
14: /**
15: * <P> This exception is thrown when an
16: * operation is invalid because a transaction is in progress.
17: * For instance, an attempt to call <CODE>Session.commit</CODE> when a
18: * session is part of a distributed transaction should throw a
19: * <CODE>TransactionInProgressException</CODE>.
20: *
21: * @version 26 August 1998
22: * @author Rahul Sharma
23: **/
24:
25: public class TransactionInProgressException extends JMSException {
26:
27: /** Constructs a <CODE>TransactionInProgressException</CODE> with the
28: * specified reason and error code.
29: *
30: * @param reason a description of the exception
31: * @param errorCode a string specifying the vendor-specific
32: * error code
33: *
34: **/
35: public TransactionInProgressException(String reason,
36: String errorCode) {
37: super (reason, errorCode);
38: }
39:
40: /** Constructs a <CODE>TransactionInProgressException</CODE> with the
41: * specified reason. The error code defaults to null.
42: *
43: * @param reason a description of the exception
44: **/
45: public TransactionInProgressException(String reason) {
46: super(reason);
47: }
48:
49: }
|