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 method.
java.lang.Throwable.getCause()
getResolvedName()setResolvedName(javax.naming.Name)getResolvedObj()setResolvedObj(java.lang.Object)
This field predates the general-purpose exception chaining facility.
The and initCause(java.lang.Throwable) methods
are now the preferred means of accessing this information.
getCause()
explanation A possibly null string containing
additional detail about this exception.java.lang.Throwable.getMessage()getResolvedObj()setResolvedName(javax.naming.Name)setRemainingName(javax.naming.Name)appendRemainingName(javax.naming.Name)appendRemainingComponent(java.lang.String)getResolvedName()setResolvedObj(java.lang.Object)java.lang.Throwable.getMessage()name is a composite name. If the intent is to set this field using a compound name or string, you must "stringify" the compound name, and create a composite name with a single component using the string. You can then invoke this method using the resulting composite name.
A copy of name is made and stored.
Subsequent changes to name does not
affect the copy in this NamingException and vice versa.
name The possibly null name to set resolved name to.
If null, it sets the resolved name field to null.getResolvedName()name is a composite name. If the intent is to set this field using a compound name or string, you must "stringify" the compound name, and create a composite name with a single component using the string. You can then invoke this method using the resulting composite name.
A copy of name is made and stored.
Subsequent changes to name does not
affect the copy in this NamingException and vice versa.
name The possibly null name to set remaining name to.
If null, it sets the remaining name field to null.getRemainingName()appendRemainingName(javax.naming.Name)appendRemainingComponent(java.lang.String)obj The possibly null object to set resolved object to.
If null, the resolved object field is set to null.getResolvedObj()name The component to add.
If name is null, this method does not do anything.setRemainingName(javax.naming.Name)getRemainingName()appendRemainingName(javax.naming.Name)name is a composite name. If the intent is to append a compound name, you should "stringify" the compound name then invoke the overloaded form that accepts a String parameter.
Subsequent changes to name does not
affect the remaining name field in this NamingException and vice versa.
name The possibly null name containing ordered components to add.
If name is null, this method does not do anything.setRemainingName(javax.naming.Name)getRemainingName()appendRemainingComponent(java.lang.String)
This method predates the general-purpose exception chaining facility.
The method is now the preferred means of obtaining
this information.
getCause()
setRootCause(java.lang.Throwable)rootExceptiongetCause()
This method predates the general-purpose exception chaining facility.
The method is now the preferred means
of recording this information.
initCause(java.lang.Throwable)
e The possibly null exception that caused the naming
operation to fail. If null, it means this naming
exception has no root cause.getRootCause()rootExceptioninitCause(java.lang.Throwable)null if the cause is nonexistent or
unknown.
null if the
cause is nonexistent or unknown.initCause(java.lang.Throwable)This method may be called at most once.
cause the cause, which is saved for later retrieval by
the getCause() method. A null value
indicates that the cause is nonexistent or unknown.NamingException instance.java.lang.IllegalArgumentException if cause is this
exception. (A throwable cannot be its own cause.)java.lang.IllegalStateException if this method has already
been called on this exception.getCause()detail If true, include details about the resolved object
in addition to the other information.