|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.naming.NamingException
com.caucho.naming.NamingExceptionWrapper
public class NamingExceptionWrapper
Wraps the actual exception with a Naming exception
| Field Summary |
|---|
| Fields inherited from class javax.naming.NamingException |
|---|
remainingName, resolvedName, resolvedObj, rootException |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class javax.naming.NamingException |
|---|
appendRemainingComponent, appendRemainingName, getExplanation, getRemainingName, getResolvedName, getResolvedObj, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getLocalizedMessage, getStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NamingExceptionWrapper()
public NamingExceptionWrapper(java.lang.String msg)
msg - the exception message.public NamingExceptionWrapper(java.lang.Throwable rootCause)
rootCause - the underlying wrapped exception.| Method Detail |
|---|
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||