KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)REBIND.java 1.2 04/03/15
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  * <code>REBIND</code> is raised when the current effective RebindPolicy,
12  * has a value of NO_REBIND or NO_RECONNECT and an invocation on a bound
13  * object reference results in a LocateReply message with status
14  * OBJECT_FORWARD or a Reply message with status LOCATION_FORWARD.
15  * This exception is also raised if the current effective RebindPolicy has
16  * a value of NO_RECONNECT and a connection must be reopened.
17  *
18  * @see <A HREF="../../../../guide/idl/jidlExceptions.html">documentation on
19  * Java&nbsp;IDL exceptions</A>
20  * @version 1.0, 03/05/2004
21  * @since J2SE 1.5
22  */

23
24 public final class REBIND extends SystemException JavaDoc {
25
26     /**
27      * Constructs an <code>REBIND</code> exception with
28      * minor code set to 0 and CompletionStatus set to COMPLETED_NO.
29      */

30     public REBIND() {
31     this("");
32     }
33
34     /**
35      * Constructs an <code>REBIND</code> exception with the
36      * specified message.
37      *
38      * @param detailMessage string containing a detailed message.
39      */

40     public REBIND(String JavaDoc detailMessage) {
41         this(detailMessage, 0, CompletionStatus.COMPLETED_NO);
42     }
43
44     /**
45      * Constructs an <code>REBIND</code> exception with the
46      * specified minor code and completion status.
47      *
48      * @param minorCode minor code.
49      * @param completionStatus completion status.
50      */

51     public REBIND(int minorCode,
52                   CompletionStatus JavaDoc completionStatus) {
53         this("", minorCode, completionStatus);
54     }
55
56     /**
57      * Constructs an <code>REBIND</code> exception with the
58      * specified message, minor code, and completion status.
59      *
60      * @param detailMessage string containing a detailed message.
61      * @param minorCode minor code.
62      * @param completionStatus completion status.
63      */

64     public REBIND(String JavaDoc detailMessage,
65                   int minorCode,
66                   CompletionStatus JavaDoc completionStatus) {
67         super(detailMessage, minorCode, completionStatus);
68     }
69 }
70
Popular Tags