public class EJBExceptionWrapper extends EJBException
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
getCausedByException
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.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)