|
||||||||||
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.lang.RuntimeException
javax.ejb.EJBException
com.caucho.ejb.EJBExceptionWrapper
public class EJBExceptionWrapper
Wraps the actual exception with an EJB exception
Constructor Summary | |
---|---|
EJBExceptionWrapper()
Null constructor for beans |
|
EJBExceptionWrapper(java.lang.String msg)
Create a basic EJBExceptionWrapper with a message. |
|
EJBExceptionWrapper(java.lang.String msg,
java.lang.Throwable rootCause)
Create a EJBExceptionWrapper wrapping a root exception. |
|
EJBExceptionWrapper(java.lang.Throwable rootCause)
Create a EJBExceptionWrapper wrapping a root exception. |
Method Summary | |
---|---|
static EJBException |
create(java.lang.Throwable exn)
Creates an EJBException from a throwable. |
static java.lang.RuntimeException |
createRuntime(java.lang.Throwable rootCause)
Creates a runtime from a throwable. |
java.lang.Throwable |
getCause()
|
Methods inherited from class javax.ejb.EJBException |
---|
getCausedByException |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EJBExceptionWrapper()
public EJBExceptionWrapper(java.lang.String msg)
msg
- the exception message.public EJBExceptionWrapper(java.lang.Throwable rootCause)
rootCause
- the underlying wrapped exception.public EJBExceptionWrapper(java.lang.String msg, java.lang.Throwable rootCause)
rootCause
- the underlying wrapped exception.Method Detail |
---|
public java.lang.Throwable getCause()
getCause
in class java.lang.Throwable
public static EJBException create(java.lang.Throwable exn)
public static java.lang.RuntimeException createRuntime(java.lang.Throwable rootCause)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |