Path: blob/master/src/java.naming/share/classes/javax/naming/NoInitialContextException.java
41152 views
/*1* Copyright (c) 1999, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425package javax.naming;2627/**28* This exception is thrown when no initial context implementation29* can be created. The policy of how an initial context implementation30* is selected is described in the documentation of the InitialContext class.31*<p>32* This exception can be thrown during any interaction with the33* InitialContext, not only when the InitialContext is constructed.34* For example, the implementation of the initial context might lazily35* retrieve the context only when actual methods are invoked on it.36* The application should not have any dependency on when the existence37* of an initial context is determined.38* <p>39* Synchronization and serialization issues that apply to NamingException40* apply directly here.41*42* @author Rosanna Lee43* @author Scott Seligman44*45* @see InitialContext46* @see javax.naming.directory.InitialDirContext47* @see javax.naming.spi.NamingManager#getInitialContext48* @see javax.naming.spi.NamingManager#setInitialContextFactoryBuilder49* @since 1.350*/51public class NoInitialContextException extends NamingException {52/**53* Constructs an instance of NoInitialContextException.54* All fields are initialized to null.55*/56public NoInitialContextException() {57super();58}5960/**61* Constructs an instance of NoInitialContextException with an62* explanation. All other fields are initialized to null.63* @param explanation Possibly null additional detail about this exception.64* @see java.lang.Throwable#getMessage65*/66public NoInitialContextException(String explanation) {67super(explanation);68}6970/**71* Use serialVersionUID from JNDI 1.1.1 for interoperability72*/73private static final long serialVersionUID = -3413733186901258623L;74}757677