Methods Summary |
---|
public java.lang.Exception | getCausedByException()Obtain the exception that caused the EJBException being thrown.
return causeException;
|
public java.lang.String | getMessage()Returns the detail message, including the message from the nested
exception if there is one.
String msg = super.getMessage();
if (causeException == null)
return msg;
else if ( msg == null ) {
return "nested exception is: " + causeException.toString();
}
else {
return msg + "; nested exception is: " + causeException.toString();
}
|
public void | printStackTrace(java.io.PrintStream ps)Prints the composite message and the embedded stack trace to
the specified stream ps .
if (causeException == null) {
super.printStackTrace(ps);
} else {
synchronized(ps) {
ps.println(this);
// Print the cause exception first, so that the output
// appears in stack order (i.e. innermost exception first)
causeException.printStackTrace(ps);
super.printStackTrace(ps);
}
}
|
public void | printStackTrace()Prints the composite message to System.err .
printStackTrace(System.err);
|
public void | printStackTrace(java.io.PrintWriter pw)Prints the composite message and the embedded stack trace to
the specified print writer pw .
if (causeException == null) {
super.printStackTrace(pw);
} else {
synchronized(pw) {
pw.println(this);
// Print the cause exception first, so that the output
// appears in stack order (i.e. innermost exception first)
causeException.printStackTrace(pw);
super.printStackTrace(pw);
}
}
|