TRANSACTION_ROLLEDBACK.java revision 891:bd32b2b28de5
1/*
2 * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.  Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26package 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 * <p>See also {@extLink jidlexception documentation on Java&nbsp;IDL exceptions}.
40 * </p>
41 */
42
43public final class TRANSACTION_ROLLEDBACK extends SystemException {
44    /**
45     * Constructs a <code>TRANSACTION_ROLLEDBACK</code> exception with a default minor code
46     * of 0, a completion state of CompletionStatus.COMPLETED_NO,
47     * and a null description.
48     */
49    public TRANSACTION_ROLLEDBACK() {
50        this("");
51    }
52
53    /**
54     * Constructs a <code>TRANSACTION_ROLLEDBACK</code> exception with the
55     * specified description message,
56     * a minor code of 0, and a completion state of COMPLETED_NO.
57     * @param s the String containing a detail message
58     */
59    public TRANSACTION_ROLLEDBACK(String s) {
60        this(s, 0, CompletionStatus.COMPLETED_NO);
61    }
62
63    /**
64     * Constructs a <code>TRANSACTION_ROLLEDBACK</code> exception with the specified
65     * minor code and completion status.
66     * @param minor the minor code
67     * @param completed the completion status
68     */
69    public TRANSACTION_ROLLEDBACK(int minor, CompletionStatus completed) {
70        this("", minor, completed);
71    }
72
73    /**
74     * Constructs a <code>TRANSACTION_ROLLEDBACK</code> exception with the
75     * specified description message, minor code, and completion status.
76     * @param s the String containing a description message
77     * @param minor the minor code
78     * @param completed the completion status
79     */
80    public TRANSACTION_ROLLEDBACK(String s, int minor, CompletionStatus completed) {
81        super(s, minor, completed);
82    }
83}
84