|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--org.openejb.OpenEJBException
The OpenEJBException is the standard exception thrown by all methods in all type in the Container Provider Interface (CPI). The OpenEJBException has 3 subtypes each serving a different purpose. The CPI will always thrown one of these subtype and never the OpenEJBException itself.
ApplicationException
,
InvalidateReferenceException
,
OpenEJBException
,
SystemException
, Serialized FormConstructor Summary | |
OpenEJBException()
Default constructor, which simply delegates exception handling up the inheritance chain to Exception . |
|
OpenEJBException(java.lang.String message)
This constructor allows a message to be supplied indicating the source of the problem that occurred. |
|
OpenEJBException(java.lang.String message,
java.lang.Throwable rootCause)
This constructor allows both a message identifying the problem that occurred as well as a "root cause" exception to be supplied, which may later be used by the wrapping application. |
|
OpenEJBException(java.lang.Throwable rootCause)
This constructor allows a "root cause" exception to be supplied, which may later be used by the wrapping application. |
Method Summary | |
java.lang.String |
getMessage()
This returns the message for the Exception . |
java.lang.Throwable |
getRootCause()
This will return the root cause Throwable , or
null if one does not exist. |
void |
printStackTrace()
This prints the stack trace of the Exception . |
void |
printStackTrace(java.io.PrintStream stream)
This prints the stack trace of the Exception . |
void |
printStackTrace(java.io.PrintWriter writer)
This prints the stack trace of the Exception . |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, toString |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public OpenEJBException()
Default constructor, which simply delegates exception
handling up the inheritance chain to Exception
.
public OpenEJBException(java.lang.String message)
This constructor allows a message to be supplied indicating the source of the problem that occurred.
message
- String
identifying the cause of the problem.public OpenEJBException(java.lang.Throwable rootCause)
This constructor allows a "root cause" exception to be supplied, which may later be used by the wrapping application.
rootCause
- Throwable
that triggered the problem.public OpenEJBException(java.lang.String message, java.lang.Throwable rootCause)
message
- String
identifying the cause of the problem.rootCause
- Throwable
that triggered this problem.Method Detail |
public java.lang.String getMessage()
This returns the message for the Exception
. If there is
a root cause, the message associated with the root cause
is appended.
getMessage
in class java.lang.Throwable
String
- message for this Exception
.public void printStackTrace()
This prints the stack trace of the Exception
. If there is
a root cause, the stack trace of the root Exception
is printed right after.
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream stream)
This prints the stack trace of the Exception
. If there is
a root cause, the stack trace of the root Exception
is printed right after.
printStackTrace
in class java.lang.Throwable
stream
- PrintStream
to print stack trace to.public void printStackTrace(java.io.PrintWriter writer)
This prints the stack trace of the Exception
. If there is
a root cause, the stack trace of the root Exception
is printed right after.
printStackTrace
in class java.lang.Throwable
writer
- PrintWriter
to print stack trace to.public java.lang.Throwable getRootCause()
This will return the root cause Throwable
, or
null
if one does not exist.
Throwable
- the wrapped Throwable
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() |
|
Copyright © 2002 OpenEJB Group. All Rights Reserved. | http://openejb.sourceforge.net |