OBJECT_NOT_EXIST.java revision 862:bd32b2b28de5
11844Swollman/*
250476Speter * Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
31638Srgrimes * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
494940Sru *
51638Srgrimes * This code is free software; you can redistribute it and/or modify it
6103713Smarkm * under the terms of the GNU General Public License version 2 only, as
71638Srgrimes * published by the Free Software Foundation.  Oracle designates this
8133653Sru * particular file as subject to the "Classpath" exception as provided
9119607Sru * by Oracle in the LICENSE file that accompanied this code.
10119607Sru *
11119607Sru * This code is distributed in the hope that it will be useful, but WITHOUT
12119607Sru * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13162210Simp * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14162210Simp * version 2 for more details (a copy is included in the LICENSE file that
15162293Sobrien * accompanied this code).
16162210Simp *
17162210Simp * You should have received a copy of the GNU General Public License version
18206082Snetchild * 2 along with this work; if not, write to the Free Software Foundation,
19206082Snetchild * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20206082Snetchild *
21206082Snetchild * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22206082Snetchild * or visit www.oracle.com if you need additional information or have any
23119607Sru * questions.
24119607Sru */
25204027Smarcel
26179184Sjbpackage org.omg.CORBA;
27179184Sjb
28179184Sjb/**
29119607Sru * Exception raised whenever an invocation on a deleted object was
30179184Sjb * performed. It is an authoritative  "hard"  fault report. Anyone
31119607Sru * receiving it is allowed (even expected) to delete all copies of
32119607Sru * this object reference and to perform other appropriate  "final
33117034Sgordon * recovery"  style procedures. Bridges forward this exception to
34119607Sru * clients, also destroying any records they may hold (for example,
351638Srgrimes * proxy objects used in reference translation). The clients could
362827Sjkh * in turn purge any of their own data structures.
371638Srgrimes * <P>
382827Sjkh * It contains a minor code, which gives more detailed information about
391638Srgrimes * what caused the exception, and a completion status. It may also contain
40139112Sru * a string describing the exception.
411844Swollman * <P>
421844Swollman * See the section {@extLink jidlexception_minorcodes Minor Code Meanings}
431638Srgrimes * to see the minor codes for this exception.
4494424Sru *
4594424Sru * <p>See also {@extLink jidlexception documentation on Java&nbsp;IDL exceptions}.
4694424Sru * </p>
4794424Sru * @since       JDK1.2
481638Srgrimes */
491638Srgrimes
501638Srgrimespublic final class OBJECT_NOT_EXIST extends SystemException {
511844Swollman    /**
521638Srgrimes     * Constructs an <code>OBJECT_NOT_EXIST</code> exception with a default minor code
53212423Srpaulo     * of 0, a completion state of CompletionStatus.COMPLETED_NO,
54212423Srpaulo     * and a null description.
55212423Srpaulo     */
56212426Srpaulo    public OBJECT_NOT_EXIST() {
57212423Srpaulo        this("");
5894518Sru    }
5994518Sru
6094518Sru    /**
6194518Sru     * Constructs an <code>OBJECT_NOT_EXIST</code> exception with the specified description,
6294518Sru     * a minor code of 0, and a completion state of COMPLETED_NO.
63228124Sfjoe     * @param s the String containing a description message
64228124Sfjoe     */
65228124Sfjoe    public OBJECT_NOT_EXIST(String s) {
6694518Sru        this(s, 0, CompletionStatus.COMPLETED_NO);
67144893Sharti    }
681844Swollman
6994518Sru    /**
7094424Sru     * Constructs an <code>OBJECT_NOT_EXIST</code> exception with the specified
7194424Sru     * minor code and completion status.
7294424Sru     * @param minor the minor code
732351Sbde     * @param completed the completion status
7494424Sru     */
751638Srgrimes    public OBJECT_NOT_EXIST(int minor, CompletionStatus completed) {
762351Sbde        this("", minor, completed);
772351Sbde    }
782351Sbde
792351Sbde    /**
802351Sbde     * Constructs an <code>OBJECT_NOT_EXIST</code> exception with the specified description
812351Sbde     * message, minor code, and completion status.
8233624Seivind     * @param s the String containing a description message
83212423Srpaulo     * @param minor the minor code
84212423Srpaulo     * @param completed the completion status
85212423Srpaulo     */
8634081Sbde    public OBJECT_NOT_EXIST(String s, int minor, CompletionStatus completed) {
87212423Srpaulo        super(s, minor, completed);
8894497Sru    }
8994497Sru}
9094497Sru