NO_IMPLEMENT.java revision 608:7e06bf1dcb09
1187277Sdas/*
2187277Sdas * Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
3187277Sdas * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4187277Sdas *
5187277Sdas * This code is free software; you can redistribute it and/or modify it
6187277Sdas * under the terms of the GNU General Public License version 2 only, as
7187277Sdas * published by the Free Software Foundation.  Oracle designates this
8227753Stheraven * particular file as subject to the "Classpath" exception as provided
9227753Stheraven * by Oracle in the LICENSE file that accompanied this code.
10227753Stheraven *
11227753Stheraven * This code is distributed in the hope that it will be useful, but WITHOUT
12227753Stheraven * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13187277Sdas * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14187277Sdas * version 2 for more details (a copy is included in the LICENSE file that
15187277Sdas * accompanied this code).
16187277Sdas *
17187277Sdas * You should have received a copy of the GNU General Public License version
18187277Sdas * 2 along with this work; if not, write to the Free Software Foundation,
19187277Sdas * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20187277Sdas *
21187277Sdas * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22187277Sdas * or visit www.oracle.com if you need additional information or have any
23187277Sdas * questions.
24187277Sdas */
25187277Sdas
26187277Sdaspackage org.omg.CORBA;
27187277Sdas
28187277Sdas/**
29187277Sdas * This exception indicates that even though the operation that
30187277Sdas * was invoked exists (it has an IDL definition), no implementation
31187277Sdas * for that operation exists. <tt>NO_IMPLEMENT</tt> can, for
32187277Sdas * example, be raised by an ORB if a client asks for an object's
33187277Sdas * type definition from the interface repository, but no interface
34187277Sdas * repository is provided by the ORB.<P>
35187277Sdas * It contains a minor code, which gives more detailed information about
36187277Sdas * what caused the exception, and a completion status. It may also contain
37187277Sdas * a string describing the exception.
38187277Sdas * <P>
39187277Sdas * See the section <A href="../../../../technotes/guides/idl/jidlExceptions.html#minorcodemeanings">Minor
40187277Sdas * Code Meanings</A> to see the minor codes for this exception.
41187277Sdas *
42187277Sdas * @since       JDK1.2
43187277Sdas */
44187277Sdas
45187284Sdaspublic final class NO_IMPLEMENT extends SystemException {
46187284Sdas    /**
47187284Sdas     * Constructs a <code>NO_IMPLEMENT</code> exception with a default minor code
48187284Sdas     * of 0, a completion state of CompletionStatus.COMPLETED_NO,
49187284Sdas     * and a null description.
50187284Sdas     */
51187284Sdas    public NO_IMPLEMENT() {
52187284Sdas        this("");
53187284Sdas    }
54187284Sdas
55187284Sdas    /**
56187284Sdas     * Constructs a <code>NO_IMPLEMENT</code> exception with the specified description message,
57187284Sdas     * a minor code of 0, and a completion state of COMPLETED_NO.
58187284Sdas     * @param s the String containing a description of the exception
59187284Sdas     */
60187284Sdas    public NO_IMPLEMENT(String s) {
61187284Sdas        this(s, 0, CompletionStatus.COMPLETED_NO);
62187582Sdas    }
63187582Sdas
64187284Sdas    /**
65187277Sdas     * Constructs a <code>NO_IMPLEMENT</code> exception with the specified
66187277Sdas     * minor code and completion status.
67187277Sdas     * @param minor an <code>int</code> specifying the minor code
68187277Sdas     * @param completed a <code>CompletionStatus</code> instance indicating
69187277Sdas     *                  the completion status
70187277Sdas     */
71187277Sdas    public NO_IMPLEMENT(int minor, CompletionStatus completed) {
72187277Sdas        this("", minor, completed);
73187277Sdas    }
74187277Sdas
75187277Sdas    /**
76187354Sdas     * Constructs a <code>NO_IMPLEMENT</code> exception with the specified description
77187277Sdas     * message, minor code, and completion status.
78187277Sdas     * @param s the String containing a description message
79187277Sdas     * @param minor an <code>int</code> specifying the minor code
80187277Sdas     * @param completed a <code>CompletionStatus</code> instance indicating
81187277Sdas     *                  the completion status
82187277Sdas     */
83187277Sdas    public NO_IMPLEMENT(String s, int minor, CompletionStatus completed) {
84187277Sdas        super(s, minor, completed);
85187277Sdas    }
86187277Sdas}
87227753Stheraven