Save This Page
Home » apache-harmony-6.0-src-r917296-snapshot » javax » naming » [javadoc | source]
javax.naming
public class: NoInitialContextException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         javax.naming.NamingException
            javax.naming.NoInitialContextException

All Implemented Interfaces:
    Serializable

A NoInitialContextException is the exception thrown by the naming classes when an initial context cannot be created. See the specification of the Context interface and the InitialContext class regarding how initial context implementations are selected.

Any interaction with an InitialContext object may cause a NoInitialContextException to be thrown. The InitialContext implementation may choose to defer getting the initial context until any of its methods are invoked.

Multithreaded access to a NoInitialContextException instance is only safe when client code locks the object first.

Fields inherited from javax.naming.NamingException:
resolvedName,  remainingName,  resolvedObj,  rootException
Constructor:
 public NoInitialContextException() 
 public NoInitialContextException(String msg) 
    Constructs an NoInitialContextException instance with the specified error message.
    Parameters:
    msg - The detail message for this exception. It may be null.
Methods from javax.naming.NamingException:
appendRemainingComponent,   appendRemainingName,   getCause,   getExplanation,   getRemainingName,   getResolvedName,   getResolvedObj,   getRootCause,   initCause,   setRemainingName,   setResolvedName,   setResolvedObj,   setRootCause,   toString,   toString
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait