public class NamingExceptionWrapper extends javax.naming.NamingException implements ExceptionWrapper
Constructor and Description |
---|
NamingExceptionWrapper()
Null constructor for beans
|
NamingExceptionWrapper(java.lang.String msg)
Create a basic NamingExceptionWrapper with a message.
|
NamingExceptionWrapper(java.lang.Throwable rootCause)
Create a NamingExceptionWrapper wrapping a root exception.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getCause()
Returns the root exception if it exists.
|
java.lang.String |
getMessage()
Returns the appropriate exception message.
|
java.lang.Throwable |
getRootCause()
Returns the root exception if it exists.
|
void |
printStackTrace()
Prints the stack trace, preferring the root cause if it exists.
|
void |
printStackTrace(java.io.PrintStream os)
Prints the stack trace, preferring the root cause if it exists.
|
void |
printStackTrace(java.io.PrintWriter os)
Prints the stack trace, preferring the root cause if it exists.
|
java.lang.String |
toString()
Print the exception as a string.
|
appendRemainingComponent, appendRemainingName, getExplanation, getRemainingName, getResolvedName, getResolvedObj, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString
public NamingExceptionWrapper()
public NamingExceptionWrapper(java.lang.String msg)
msg
- the exception message.public NamingExceptionWrapper(java.lang.Throwable rootCause)
rootCause
- the underlying wrapped exception.public java.lang.Throwable getRootCause()
getRootCause
in interface ExceptionWrapper
getRootCause
in class javax.naming.NamingException
public java.lang.Throwable getCause()
getCause
in class javax.naming.NamingException
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream os)
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintWriter os)
printStackTrace
in class java.lang.Throwable
public java.lang.String toString()
toString
in class javax.naming.NamingException