OBJ_ADAPTER.java revision 608:7e06bf1dcb09
1/*
2 * Copyright (c) 1995, 2006, 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 * This exception typically indicates an administrative mismatch, for
30 * example, a server may have made an attempt to register itself with
31 * an implementation repository under a name that is already in use,
32 * or is unknown to the repository. <P>
33 * It contains a minor code, which gives more detailed information about
34 * what caused the exception, and a completion status. It may also contain
35 * a string describing the exception.
36 * <P>
37 * See the section <A href="../../../../technotes/guides/idl/jidlExceptions.html#minorcodemeanings">Minor
38 * Code Meanings</A> to see the minor codes for this exception.
39 *
40 * @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
41 * Java&nbsp;IDL exceptions</A>
42 * @since       JDK1.2
43 */
44
45public final class OBJ_ADAPTER extends SystemException {
46    /**
47     * Constructs an <code>OBJ_ADAPTER</code> exception with a default minor code
48     * of 0, a completion state of CompletionStatus.COMPLETED_NO,
49     * and a null description.
50     */
51    public OBJ_ADAPTER() {
52        this("");
53    }
54
55    /**
56     * Constructs an <code>OBJ_ADAPTER</code> exception with the specified description,
57     * a minor code of 0, and a completion state of COMPLETED_NO.
58     * @param s the String containing a description message
59     */
60    public OBJ_ADAPTER(String s) {
61        this(s, 0, CompletionStatus.COMPLETED_NO);
62    }
63
64    /**
65     * Constructs an <code>OBJ_ADAPTER</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 OBJ_ADAPTER(int minor, CompletionStatus completed) {
71        this("", minor, completed);
72    }
73
74    /**
75     * Constructs an <code>OBJ_ADAPTER</code> exception with the specified description
76     * 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 OBJ_ADAPTER(String s, int minor, CompletionStatus completed) {
82        super(s, minor, completed);
83    }
84}
85