KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > CORBA > OBJ_ADAPTER


1 /*
2  * @(#)OBJ_ADAPTER.java 1.31 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package org.omg.CORBA;
9
10 /**
11  * This exception typically indicates an administrative mismatch, for
12  * example, a server may have made an attempt to register itself with
13  * an implementation repository under a name that is already in use,
14  * or is unknown to the repository. <P>
15  * It contains a minor code, which gives more detailed information about
16  * what caused the exception, and a completion status. It may also contain
17  * a string describing the exception.
18  * <P>
19  * See the section <A HREF="../../../../guide/idl/jidlExceptions.html#minorcodemeanings">Minor
20  * Code Meanings</A> to see the minor codes for this exception.
21  *
22  * @see <A HREF="../../../../guide/idl/jidlExceptions.html">documentation on
23  * Java&nbsp;IDL exceptions</A>
24  * @version 1.17, 09/09/97
25  * @since JDK1.2
26  */

27
28 public final class OBJ_ADAPTER extends SystemException JavaDoc {
29     /**
30      * Constructs an <code>OBJ_ADAPTER</code> exception with a default minor code
31      * of 0, a completion state of CompletionStatus.COMPLETED_NO,
32      * and a null description.
33      */

34     public OBJ_ADAPTER() {
35         this("");
36     }
37
38     /**
39      * Constructs an <code>OBJ_ADAPTER</code> exception with the specified description,
40      * a minor code of 0, and a completion state of COMPLETED_NO.
41      * @param s the String containing a description message
42      */

43     public OBJ_ADAPTER(String JavaDoc s) {
44         this(s, 0, CompletionStatus.COMPLETED_NO);
45     }
46
47     /**
48      * Constructs an <code>OBJ_ADAPTER</code> exception with the specified
49      * minor code and completion status.
50      * @param minor the minor code
51      * @param completed the completion status
52      */

53     public OBJ_ADAPTER(int minor, CompletionStatus JavaDoc completed) {
54         this("", minor, completed);
55     }
56
57     /**
58      * Constructs an <code>OBJ_ADAPTER</code> exception with the specified description
59      * message, minor code, and completion status.
60      * @param s the String containing a description message
61      * @param minor the minor code
62      * @param completed the completion status
63      */

64     public OBJ_ADAPTER(String JavaDoc s, int minor, CompletionStatus JavaDoc completed) {
65         super(s, minor, completed);
66     }
67 }
68
Popular Tags