1 /* 2 * @(#)NoInitialContextException.java 1.7 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 javax.naming; 9 10 /** 11 * This exception is thrown when no initial context implementation 12 * can be created. The policy of how an initial context implementation 13 * is selected is described in the documentation of the InitialContext class. 14 *<p> 15 * This exception can be thrown during any interaction with the 16 * InitialContext, not only when the InitialContext is constructed. 17 * For example, the implementation of the initial context might lazily 18 * retrieve the context only when actual methods are invoked on it. 19 * The application should not have any dependency on when the existence 20 * of an initial context is determined. 21 * <p> 22 * Synchronization and serialization issues that apply to NamingException 23 * apply directly here. 24 * 25 * @author Rosanna Lee 26 * @author Scott Seligman 27 * @version 1.7 03/12/19 28 * 29 * @see InitialContext 30 * @see javax.naming.directory.InitialDirContext 31 * @see javax.naming.spi.NamingManager#getInitialContext 32 * @see javax.naming.spi.NamingManager#setInitialContextFactoryBuilder 33 * @since 1.3 34 */ 35 public class NoInitialContextException extends NamingException { 36 /** 37 * Constructs an instance of NoInitialContextException. 38 * All fields are initialized to null. 39 */ 40 public NoInitialContextException() { 41 super(); 42 } 43 44 /** 45 * Constructs an instance of NoInitialContextException with an 46 * explanation. All other fields are initialized to null. 47 * @param explanation Possibly null additional detail about this exception. 48 * @see java.lang.Throwable#getMessage 49 */ 50 public NoInitialContextException(String explanation) { 51 super(explanation); 52 } 53 54 /** 55 * Use serialVersionUID from JNDI 1.1.1 for interoperability 56 */ 57 private static final long serialVersionUID = -3413733186901258623L; 58 } 59