OBJ_ADAPTER.java revision 608:7e06bf1dcb09
1288943Sdim/* 2277323Sdim * Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved. 3277323Sdim * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4277323Sdim * 5277323Sdim * This code is free software; you can redistribute it and/or modify it 6277323Sdim * under the terms of the GNU General Public License version 2 only, as 7277323Sdim * published by the Free Software Foundation. Oracle designates this 8277323Sdim * particular file as subject to the "Classpath" exception as provided 9277323Sdim * by Oracle in the LICENSE file that accompanied this code. 10288943Sdim * 11288943Sdim * This code is distributed in the hope that it will be useful, but WITHOUT 12277323Sdim * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13277323Sdim * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14277323Sdim * version 2 for more details (a copy is included in the LICENSE file that 15288943Sdim * accompanied this code). 16277323Sdim * 17277323Sdim * You should have received a copy of the GNU General Public License version 18277323Sdim * 2 along with this work; if not, write to the Free Software Foundation, 19277323Sdim * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20277323Sdim * 21277323Sdim * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22277323Sdim * or visit www.oracle.com if you need additional information or have any 23288943Sdim * questions. 24288943Sdim */ 25288943Sdim 26288943Sdimpackage org.omg.CORBA; 27288943Sdim 28288943Sdim/** 29288943Sdim * This exception typically indicates an administrative mismatch, for 30288943Sdim * example, a server may have made an attempt to register itself with 31288943Sdim * an implementation repository under a name that is already in use, 32277323Sdim * or is unknown to the repository. <P> 33277323Sdim * It contains a minor code, which gives more detailed information about 34288943Sdim * what caused the exception, and a completion status. It may also contain 35309124Sdim * a string describing the exception. 36288943Sdim * <P> 37277323Sdim * See the section <A href="../../../../technotes/guides/idl/jidlExceptions.html#minorcodemeanings">Minor 38288943Sdim * Code Meanings</A> to see the minor codes for this exception. 39288943Sdim * 40288943Sdim * @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on 41288943Sdim * Java IDL exceptions</A> 42288943Sdim * @since JDK1.2 43288943Sdim */ 44288943Sdim 45288943Sdimpublic final class OBJ_ADAPTER extends SystemException { 46277323Sdim /** 47288943Sdim * Constructs an <code>OBJ_ADAPTER</code> exception with a default minor code 48277323Sdim * of 0, a completion state of CompletionStatus.COMPLETED_NO, 49288943Sdim * and a null description. 50288943Sdim */ 51288943Sdim public OBJ_ADAPTER() { 52288943Sdim this(""); 53288943Sdim } 54277323Sdim 55288943Sdim /** 56288943Sdim * Constructs an <code>OBJ_ADAPTER</code> exception with the specified description, 57288943Sdim * a minor code of 0, and a completion state of COMPLETED_NO. 58288943Sdim * @param s the String containing a description message 59288943Sdim */ 60288943Sdim public OBJ_ADAPTER(String s) { 61288943Sdim this(s, 0, CompletionStatus.COMPLETED_NO); 62288943Sdim } 63288943Sdim 64288943Sdim /** 65288943Sdim * Constructs an <code>OBJ_ADAPTER</code> exception with the specified 66288943Sdim * minor code and completion status. 67288943Sdim * @param minor the minor code 68288943Sdim * @param completed the completion status 69288943Sdim */ 70288943Sdim public OBJ_ADAPTER(int minor, CompletionStatus completed) { 71288943Sdim this("", minor, completed); 72288943Sdim } 73288943Sdim 74288943Sdim /** 75288943Sdim * Constructs an <code>OBJ_ADAPTER</code> exception with the specified description 76288943Sdim * message, minor code, and completion status. 77288943Sdim * @param s the String containing a description message 78288943Sdim * @param minor the minor code 79288943Sdim * @param completed the completion status 80288943Sdim */ 81288943Sdim public OBJ_ADAPTER(String s, int minor, CompletionStatus completed) { 82288943Sdim super(s, minor, completed); 83288943Sdim } 84288943Sdim} 85288943Sdim