Exception: javax.naming.NamingException

  • public exception NamingException
  • extends Exception
This is the superclass of all exceptions thrown by operations in the Context and DirContext interfaces. The nature of the failure is described by the name of the subclass. This exception captures the information pinpointing where the operation failed, such as where resolution last proceeded to.
  • Resolved Name. Portion of name that has been resolved.
  • Resolved Object. Object to which resolution of name proceeded.
  • Remaining Name. Portion of name that has not been resolved.
  • Explanation. Detail explaining why name resolution failed.
  • Root Exception. The exception that caused this naming exception to be thrown.
null is an acceptable value for any of these fields. When null, it means that no such information has been recorded for that field.

A NamingException instance is not synchronized against concurrent multithreaded access. Multiple threads trying to access and modify a single NamingException instance should lock the object.

This exception has been retrofitted to conform to the general purpose exception-chaining mechanism. The root exception (or root cause) is the same object as the cause returned by the Throwable.getCause() method.

Authors:
@author Rosanna Lee
@author Scott Seligman
Since:
@since 1.3

Inheritance

Superclass tree: Implements:

Methods

Fields

  • remainingName

    protected Name remainingName
    Contains the remaining name that has not been resolved yet. It is a composite name and can be null. This field is initialized by the constructors. You should access and manipulate this field through its get, set, "append" methods.
  • resolvedName

    protected Name resolvedName
    Contains the part of the name that has been successfully resolved. It is a composite name and can be null. This field is initialized by the constructors. You should access and manipulate this field through its get and set methods.
  • resolvedObj

    protected Object resolvedObj
    Contains the object to which resolution of the part of the name was successful. Can be null. This field is initialized by the constructors. You should access and manipulate this field through its get and set methods.
  • rootException

    protected Throwable rootException
    Contains the original exception that caused this NamingException to be thrown. This field is set if there is additional information that could be obtained from the original exception, or if the original exception could not be mapped to a subclass of NamingException. Can be null.

    This field predates the general-purpose exception chaining facility. The javax.naming.NamingException.initCause(java.lang.Throwable) and javax.naming.NamingException.getCause() methods are now the preferred means of accessing this information.

  • serialVersionUID

    static final private long serialVersionUID = -1299181962103167177
    Use serialVersionUID from JNDI 1.1.1 for interoperability