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, toStringpublic 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 ExceptionWrappergetRootCause in class javax.naming.NamingExceptionpublic java.lang.Throwable getCause()
getCause in class javax.naming.NamingExceptionpublic java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic void printStackTrace()
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintStream os)
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintWriter os)
printStackTrace in class java.lang.Throwablepublic java.lang.String toString()
toString in class javax.naming.NamingException