2115N/A/*
2362N/A * Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
2115N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2115N/A *
2115N/A * This code is free software; you can redistribute it and/or modify it
2115N/A * under the terms of the GNU General Public License version 2 only, as
2115N/A * published by the Free Software Foundation. Oracle designates this
2115N/A * particular file as subject to the "Classpath" exception as provided
2115N/A * by Oracle in the LICENSE file that accompanied this code.
2115N/A *
2115N/A * This code is distributed in the hope that it will be useful, but WITHOUT
2115N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
2115N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
2115N/A * version 2 for more details (a copy is included in the LICENSE file that
2115N/A * accompanied this code).
2115N/A *
2115N/A * You should have received a copy of the GNU General Public License version
2115N/A * 2 along with this work; if not, write to the Free Software Foundation,
2362N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2362N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2115N/A * or visit www.oracle.com if you need additional information or have any
2115N/A * questions.
2115N/A */
2115N/A
2115N/Apackage org.omg.CORBA;
2115N/A
2115N/A/**
2115N/A * This exception is raised if an operation implementation
2115N/A * throws a non-CORBA exception (such as an exception
2115N/A * specific to the implementation's programming language),
2115N/A * or if an operation raises a user exception that does not
2115N/A * appear in the operation's raises expression. UNKNOWN is
2115N/A * also raised if the server returns a system exception that
2115N/A * is unknown to the client. (This can happen if the server
2115N/A * uses a later version of CORBA than the client and new system
2115N/A * exceptions have been added to the later version.)<P>
2115N/A * It contains a minor code, which gives more detailed information about
2115N/A * what caused the exception, and a completion status. It may also contain
2115N/A * a string describing the exception.
2115N/A * <P>
2115N/A * See the section <A href="../../../../technotes/guides/idl/jidlExceptions.html#minorcodemeanings">Minor
2115N/A * Code Meanings</A> to see the minor codes for this exception.
2115N/A *
2562N/A * @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
2562N/A * Java&nbsp;IDL exceptions</A>
2115N/A */
2115N/A
2115N/Apublic final class UNKNOWN extends SystemException {
2115N/A /**
2115N/A * Constructs an <code>UNKNOWN</code> exception with a default minor code
2115N/A * of 0, a completion state of CompletionStatus.COMPLETED_NO,
2115N/A * and a null description.
2115N/A */
2115N/A public UNKNOWN() {
2115N/A this("");
2115N/A }
2115N/A
2115N/A /**
2115N/A * Constructs an <code>UNKNOWN</code> exception with the specified description message,
2115N/A * a minor code of 0, and a completion state of COMPLETED_NO.
2115N/A * @param s the String containing a detail message
2115N/A */
2115N/A public UNKNOWN(String s) {
2115N/A this(s, 0, CompletionStatus.COMPLETED_NO);
2115N/A }
2115N/A
2115N/A /**
2115N/A * Constructs an <code>UNKNOWN</code> exception with the specified
2115N/A * minor code and completion status.
2115N/A * @param minor the minor code
2115N/A * @param completed the completion status
2115N/A */
2115N/A public UNKNOWN(int minor, CompletionStatus completed) {
2115N/A this("", minor, completed);
2115N/A }
2115N/A
2115N/A /**
2115N/A * Constructs an <code>UNKNOWN</code> exception with the specified description
2115N/A * message, minor code, and completion status.
2115N/A * @param s the String containing a description message
2115N/A * @param minor the minor code
2115N/A * @param completed the completion status
2115N/A */
2115N/A public UNKNOWN(String s, int minor, CompletionStatus completed) {
2115N/A super(s, minor, completed);
2115N/A }
2115N/A}
2115N/A