01: /*
02: * @(#)TransactionRolledBackException.java 1.7 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 must be thrown when a
16: * call to <CODE>Session.commit</CODE> results in a rollback of the current
17: * transaction.
18: *
19: * @version 26 August 1998
20: * @author Rahul Sharma
21: **/
22:
23: public class TransactionRolledBackException extends JMSException {
24:
25: /** Constructs a <CODE>TransactionRolledBackException</CODE> with the
26: * specified reason and error code.
27: *
28: * @param reason a description of the exception
29: * @param errorCode a string specifying the vendor-specific
30: * error code
31: *
32: **/
33: public TransactionRolledBackException(String reason,
34: String errorCode) {
35: super (reason, errorCode);
36: }
37:
38: /** Constructs a <CODE>TransactionRolledBackException</CODE> with the
39: * specified reason. The error code defaults to null.
40: *
41: * @param reason a description of the exception
42: **/
43: public TransactionRolledBackException(String reason) {
44: super(reason);
45: }
46:
47: }
|