01: /*
02: * Copyright 1995-2006 Sun Microsystems, Inc. All Rights Reserved.
03: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
04: *
05: * This code is free software; you can redistribute it and/or modify it
06: * under the terms of the GNU General Public License version 2 only, as
07: * published by the Free Software Foundation. Sun designates this
08: * particular file as subject to the "Classpath" exception as provided
09: * by Sun in the LICENSE file that accompanied this code.
10: *
11: * This code is distributed in the hope that it will be useful, but WITHOUT
12: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14: * version 2 for more details (a copy is included in the LICENSE file that
15: * accompanied this code).
16: *
17: * You should have received a copy of the GNU General Public License version
18: * 2 along with this work; if not, write to the Free Software Foundation,
19: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20: *
21: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
22: * CA 95054 USA or visit www.sun.com if you need additional information or
23: * have any questions.
24: */
25:
26: package org.omg.CORBA;
27:
28: /**
29: * Exception thrown
30: * when an ORB has encountered a failure during its initialization,
31: * such as failure to acquire networking resources or detecting a
32: * configuration error.<P>
33: * It contains a minor code, which gives more detailed information about
34: * what caused the exception, and a completion status. It may also contain
35: * a string describing the exception.
36: *
37: * @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
38: * Java IDL exceptions</A>
39: * @version 1.19, 09/09/97
40: * @since JDK1.2
41: */
42:
43: public final class INITIALIZE extends SystemException {
44: /**
45: * Constructs an <code>INITIALIZE</code> exception with a default
46: * minor code of 0 and a completion state of
47: * <code>CompletionStatus.COMPLETED_NO</code>.
48: */
49: public INITIALIZE() {
50: this ("");
51: }
52:
53: /**
54: * Constructs an <code>INITIALIZE</code> exception with the specified detail
55: * message, a minor code of 0, and a completion state of
56: * <code>CompletionStatus.COMPLETED_NO</code>.
57: * @param s the String containing a detail message
58: */
59: public INITIALIZE(String s) {
60: this (s, 0, CompletionStatus.COMPLETED_NO);
61: }
62:
63: /**
64: * Constructs an <code>INITIALIZE</code> exception with the specified
65: * minor code and completion status.
66: * @param minor the minor code
67: * @param completed an instance of <code>CompletionStatus</code>
68: * indicating the completion status of the method
69: * that threw this exception
70: */
71: public INITIALIZE(int minor, CompletionStatus completed) {
72: this ("", minor, completed);
73: }
74:
75: /**
76: * Constructs an <code>INITIALIZE</code> exception with the specified detail
77: * message, minor code, and completion status.
78: * A detail message is a String that describes this particular exception.
79: * @param s the String containing a detail message
80: * @param minor the minor code
81: * @param completed an instance of <code>CompletionStatus</code>
82: * indicating the completion status of the method
83: * that threw this exception
84: */
85: public INITIALIZE(String s, int minor, CompletionStatus completed) {
86: super(s, minor, completed);
87: }
88: }
|