This exception can be thrown during any interaction with the InitialContext, not only when the InitialContext is constructed. For example, the implementation of the initial context might lazily retrieve the context only when actual methods are invoked on it. The application should not have any dependency on when the existence of an initial context is determined.
Synchronization and serialization issues that apply to NamingException apply directly here.
InitialContext, javax.naming.directory.InitialDirContext , javax.naming.spi.NamingManager#getInitialContext , javax.naming.spi.NamingManager#setInitialContextFactoryBuilder
| Modifier and Type | Field and Description |
|---|---|
| private static final long | serialVersionUID
Use serialVersionUID from JNDI 1.1.1 for interoperability
|
| Access | Constructor and Description |
|---|---|
| public | |
| public | NoInitialContextException(String
Possibly null additional detail about this exception. explanation)Constructs an instance of NoInitialContextException with an explanation. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides javax. Use serialVersionUID from JNDI 1.1.1 for interoperability | |
| NoInitialContextException | back to summary |
|---|---|
| public NoInitialContextException() Constructs an instance of NoInitialContextException. All fields are initialized to null. | |
| NoInitialContextException | back to summary |
|---|---|
| public NoInitialContextException(String explanation) Constructs an instance of NoInitialContextException with an explanation. All other fields are initialized to null.
| |