|
||||||||||
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
public class EJBException
Thrown for unexpected exception.
Constructor Summary | |
---|---|
EJBException()
Default constructor : builds an exception with an empty message. |
|
EJBException(java.lang.Exception causedByException)
Builds an exception with a given exception. |
|
EJBException(java.lang.String message)
Builds an exception with a given message. |
|
EJBException(java.lang.String message,
java.lang.Exception causedByException)
Builds an exception with a given message and given exception. |
Method Summary | |
---|---|
java.lang.Exception |
getCausedByException()
|
java.lang.String |
getMessage()
|
void |
printStackTrace()
Prints the stack trace on the default stream (System.err). |
void |
printStackTrace(java.io.PrintStream printStream)
Print the stack trace on the given stream. |
void |
printStackTrace(java.io.PrintWriter printWriter)
Print the stack trace on the given writer. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EJBException()
public EJBException(java.lang.Exception causedByException)
causedByException
- the cause of this exception.public EJBException(java.lang.String message)
message
- the message of this exception.public EJBException(java.lang.String message, java.lang.Exception causedByException)
message
- the message of this exception.causedByException
- the cause of this exception.Method Detail |
---|
public java.lang.Exception getCausedByException()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream printStream)
printStackTrace
in class java.lang.Throwable
printStream
- the given stream.public void printStackTrace(java.io.PrintWriter printWriter)
printStackTrace
in class java.lang.Throwable
printWriter
- the given writer.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |