public class EJBException
extends java.lang.RuntimeException
Modifier and Type | Field and Description |
---|---|
private java.lang.Exception |
causeException |
private static long |
serialVersionUID |
Constructor and Description |
---|
EJBException()
Constructs an EJBException with no detail message.
|
EJBException(java.lang.Exception ex)
Constructs an EJBException that embeds the originally thrown exception.
|
EJBException(java.lang.String message)
Constructs an EJBException with the specified detailed message.
|
EJBException(java.lang.String message,
java.lang.Exception ex)
Constructs an EJBException with the specified message and the
originally throw exception.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Exception |
getCausedByException()
Obtain the exception that caused the EJBException being thrown.
|
private static final long serialVersionUID
private java.lang.Exception causeException
public EJBException()
public EJBException(java.lang.String message)
message
- - The detailed message.public EJBException(java.lang.Exception ex)
ex
- - The originally thrown exception.public EJBException(java.lang.String message, java.lang.Exception ex)
message
- - The detailed message.ex
- - The originally thrown exception.