|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.springframework.core.NestedRuntimeException org.springframework.ldap.NamingException
public abstract class NamingException
Base class for exception thrown by the framework whenever it encounters a problem related to LDAP.
Constructor Summary | |
---|---|
NamingException(java.lang.String msg)
Constructor that takes a message. |
|
NamingException(java.lang.String msg,
java.lang.Throwable cause)
Constructor that allows a message and a root cause. |
|
NamingException(java.lang.Throwable cause)
Constructor that allows a plain root cause, intended for subclasses mirroring corresponding javax.naming exceptions. |
Method Summary | |
---|---|
java.lang.Throwable |
getCause()
Overrides NestedRuntimeException.getCause() since serialization
always tries to serialize the base class before the subclass. |
java.lang.String |
getExplanation()
Convenience method to get the explanation associated with this exception, if the root cause was an instance of NamingException . |
javax.naming.Name |
getRemainingName()
Convenience method to get the unresolved part of the name associated with this exception, if the root cause was an instance of NamingException . |
javax.naming.Name |
getResolvedName()
Convenience method to get the leading portion of the resolved name associated with this exception, if the root cause was an instance of NamingException . |
java.lang.Object |
getResolvedObj()
Convenience method to get the resolved object associated with this exception, if the root cause was an instance of NamingException . |
Methods inherited from class org.springframework.core.NestedRuntimeException |
---|
contains, getMessage, getMostSpecificCause, getRootCause, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NamingException(java.lang.String msg)
msg
- the detail messagepublic NamingException(java.lang.String msg, java.lang.Throwable cause)
msg
- the detail messagecause
- the cause of the exception. This argument is generally
expected to be a proper subclass of
NamingException
.public NamingException(java.lang.Throwable cause)
javax.naming
exceptions.
cause
- the cause of the exception. This argument is generally
expected to be a proper subclass of
NamingException
.Method Detail |
---|
public java.lang.Throwable getCause()
NestedRuntimeException.getCause()
since serialization
always tries to serialize the base class before the subclass. Our
cause may have a resolvedObj that is not
serializable. By storing the cause in this class, we get a chance at
temporarily nulling the cause before serialization, thus in effect making
the current instance serializable.
getCause
in class org.springframework.core.NestedRuntimeException
public java.lang.String getExplanation()
NamingException
.
null
if there is no detail message for this
exceptionpublic javax.naming.Name getRemainingName()
NamingException
.
null
if the
remaining name field has not been setpublic javax.naming.Name getResolvedName()
NamingException
.
null
if the
resolved name field has not been setpublic java.lang.Object getResolvedObj()
NamingException
.
null
if the resolved object field has not been set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |