01: /*
02: * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved.
03: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
04: *
05: * This code is free software; you can redistribute it and/or modify it
06: * under the terms of the GNU General Public License version 2 only, as
07: * published by the Free Software Foundation. Sun designates this
08: * particular file as subject to the "Classpath" exception as provided
09: * by Sun in the LICENSE file that accompanied this code.
10: *
11: * This code is distributed in the hope that it will be useful, but WITHOUT
12: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14: * version 2 for more details (a copy is included in the LICENSE file that
15: * accompanied this code).
16: *
17: * You should have received a copy of the GNU General Public License version
18: * 2 along with this work; if not, write to the Free Software Foundation,
19: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20: *
21: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
22: * CA 95054 USA or visit www.sun.com if you need additional information or
23: * have any questions.
24: */
25:
26: package org.omg.CORBA;
27:
28: /**
29: * Exception thrown when the transaction associated with the request has
30: * already been rolled back or marked to roll back. Thus, the requested
31: * operation either could not be performed or was not performed because
32: * further computation on behalf of the transaction would be fruitless.<P>
33: * See the OMG Transaction
34: * Service specification for details.
35: * It contains a minor code, which gives more detailed information about
36: * what caused the exception, and a completion status. It may also contain
37: * a string describing the exception.
38: *
39: * @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
40: * Java IDL exceptions</A>
41: * @version 1.5 09/09/97
42: */
43:
44: public final class TRANSACTION_ROLLEDBACK extends SystemException {
45: /**
46: * Constructs a <code>TRANSACTION_ROLLEDBACK</code> exception with a default minor code
47: * of 0, a completion state of CompletionStatus.COMPLETED_NO,
48: * and a null description.
49: */
50: public TRANSACTION_ROLLEDBACK() {
51: this ("");
52: }
53:
54: /**
55: * Constructs a <code>TRANSACTION_ROLLEDBACK</code> exception with the
56: * specified description message,
57: * a minor code of 0, and a completion state of COMPLETED_NO.
58: * @param s the String containing a detail message
59: */
60: public TRANSACTION_ROLLEDBACK(String s) {
61: this (s, 0, CompletionStatus.COMPLETED_NO);
62: }
63:
64: /**
65: * Constructs a <code>TRANSACTION_ROLLEDBACK</code> exception with the specified
66: * minor code and completion status.
67: * @param minor the minor code
68: * @param completed the completion status
69: */
70: public TRANSACTION_ROLLEDBACK(int minor, CompletionStatus completed) {
71: this ("", minor, completed);
72: }
73:
74: /**
75: * Constructs a <code>TRANSACTION_ROLLEDBACK</code> exception with the
76: * specified description message, minor code, and completion status.
77: * @param s the String containing a description message
78: * @param minor the minor code
79: * @param completed the completion status
80: */
81: public TRANSACTION_ROLLEDBACK(String s, int minor,
82: CompletionStatus completed) {
83: super(s, minor, completed);
84: }
85: }
|