01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package javax.naming;
19:
20: /**
21: * A <code>NoInitialContextException</code> is the exception thrown by the
22: * naming classes when an initial context cannot be created. See the
23: * specification of the <code>Context</code> interface and the
24: * <code>InitialContext</code> class regarding how initial context
25: * implementations are selected.
26: * <p>
27: * Any interaction with an <code>InitialContext</code> object may cause a
28: * <code>NoInitialContextException</code> to be thrown. The
29: * <code>InitialContext</code> implementation may choose to defer getting the
30: * initial context until any of its methods are invoked.
31: * </p>
32: * <p>
33: * Multithreaded access to a <code>NoInitialContextException</code> instance
34: * is only safe when client code locks the object first.
35: * </p>
36: */
37: public class NoInitialContextException extends NamingException {
38:
39: /*
40: * This constant is used during deserialization to check the version which
41: * created the serialized object.
42: */
43: static final long serialVersionUID = -3413733186901258623L;
44:
45: /**
46: * Constructs an <code>NoInitialContextException</code> instance with all
47: * data initialized to null.
48: */
49: public NoInitialContextException() {
50: super ();
51: }
52:
53: /**
54: * Constructs an <code>NoInitialContextException</code> instance with the
55: * specified error message.
56: *
57: * @param msg
58: * The detail message for this exception. It may be null.
59: */
60: public NoInitialContextException(String msg) {
61: super(msg);
62: }
63:
64: }
|