API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.naming. NamingException View Source
Author(s)
Rosanna Lee
Scott Seligman
Since
1.3
Version
1.11 05/11/17
Serial
Hierarchy
 Object
      Throwable
          Exception
              NamingException
Implements
Subclasses
Description
public exception NamingException
  This is the superclass of all exceptions thrown by operations in the Context and DirContext interfaces.
See also:   
Constructors
public NamingException ()
  Constructs a new NamingException.
public NamingException (String explanation)
  Constructs a new NamingException with an explanation.
Methods
Hide/Show inherited methods
public void appendRemainingComponent (String name)
  Add name as the last component in remaining name.
public void appendRemainingName (Name name)
  Add components from 'name' as the last components in remaining name.
publicsynchronizednative Throwable fillInStackTrace () [Inherited From Throwable]
  Fills in the execution stack trace.
public Throwable getCause () [Overrides Throwable]
  Returns the cause of this exception.
public String getExplanation ()
  Retrieves the explanation associated with this exception.
public String getLocalizedMessage () [Inherited From Throwable]
  Creates a localized description of this throwable.
public String getMessage () [Inherited From Throwable]
  Returns the detail message string of this throwable.
public Name getRemainingName ()
  Retrieves the remaining unresolved portion of the name.
public Name getResolvedName ()
  Retrieves the leading portion of the name that was resolved successfully.
public Object getResolvedObj ()
  Retrieves the object to which resolution was successful.
public Throwable getRootCause ()
  Retrieves the root cause of this NamingException, if any.
public StackTraceElement getStackTrace () [Inherited From Throwable]
  Provides programmatic access to the stack trace information printed by Throwable.printStackTrace().
public Throwable initCause (Throwable cause) [Overrides Throwable]
  Initializes the cause of this exception to the specified value.
public void printStackTrace () [Inherited From Throwable]
  Prints this throwable and its backtrace to the standard error stream.
public void printStackTrace (PrintStream s) [Inherited From Throwable]
  Prints this throwable and its backtrace to the specified print stream.
public void printStackTrace (PrintWriter s) [Inherited From Throwable]
  Prints this throwable and its backtrace to the specified print writer.
public void setRemainingName (Name name)
  Sets the remaining name field of this exception.
public void setResolvedName (Name name)
  Sets the resolved name field of this exception.
public void setResolvedObj (Object obj)
  Sets the resolved object field of this exception.
public void setRootCause (Throwable e)
  Records the root cause of this NamingException.
public void setStackTrace (StackTraceElement stackTrace) [Inherited From Throwable]
  Sets the stack trace elements that will be returned by Throwable.getStackTrace() and printed by Throwable.printStackTrace() and related methods.
public String toString () [Overrides Throwable]
  Generates the string representation of this exception.
public String toString (boolean detail)
  Generates the string representation in more detail.
Fields
Hide/Show inherited fields
protected Name remainingName
  Contains the remaining name that has not been resolved yet.
protected Name resolvedName
  Contains the part of the name that has been successfully resolved.
protected Object resolvedObj
  Contains the object to which resolution of the part of the name was successful.
protected Throwable rootException
  Contains the original exception that caused this NamingException to be thrown.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar