|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
java.rmi.RemoteException
com.caucho.ejb.RemoteExceptionWrapper
public class RemoteExceptionWrapper
Wraps the actual exception with an Remote exception
| Field Summary |
|---|
| Fields inherited from class java.rmi.RemoteException |
|---|
detail |
| Constructor Summary | |
|---|---|
RemoteExceptionWrapper()
Null constructor for beans |
|
RemoteExceptionWrapper(java.lang.String msg)
Create a basic RemoteExceptionWrapper with a message. |
|
RemoteExceptionWrapper(java.lang.Throwable rootCause)
Create a RemoteExceptionWrapper wrapping a root exception. |
|
| Method Summary | |
|---|---|
static RemoteExceptionWrapper |
create(java.lang.Throwable rootCause)
|
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 java.rmi.RemoteException |
|---|
getCause |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteExceptionWrapper()
public RemoteExceptionWrapper(java.lang.String msg)
msg - the exception message.public RemoteExceptionWrapper(java.lang.Throwable rootCause)
rootCause - the underlying wrapped exception.| Method Detail |
|---|
public static RemoteExceptionWrapper create(java.lang.Throwable rootCause)
public java.lang.Throwable getRootCause()
getRootCause in interface ExceptionWrapperpublic java.lang.String getMessage()
getMessage in class java.rmi.RemoteExceptionpublic 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 java.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||