|
|||||||||
| 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
|
+--net.sf.bus.util.NestedException
Base class for all nested exceptions. The exception may have a nested exception and/or a message, if desired. Also provides support for outputting the stacktrace with the nested exception
| Constructor Summary | |
NestedException()
Construct an empty exception |
|
NestedException(java.lang.String message)
Construct an exception with a message |
|
NestedException(java.lang.String message,
java.lang.Throwable nested)
Construct an exception with a nested exception and a message |
|
NestedException(java.lang.Throwable nested)
Construct an exception with a nested exception |
|
| Method Summary | |
java.lang.Throwable |
getNestedException()
Returns the nested exception, or null if there isn't one |
boolean |
hasNestedException()
Return true if there is a nested exception |
void |
printStackTrace(java.io.PrintStream ps)
Send the stack trace to the given printstream. |
void |
printStackTrace(java.io.PrintWriter pw)
Send the stack trace to the given printwriter. |
java.lang.String |
toString()
Returns a combination of this exception's message (if any) and the nested exception's toString() (if any) |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public NestedException()
public NestedException(java.lang.Throwable nested)
nested - the nested exceptionpublic NestedException(java.lang.String message)
message - the message
public NestedException(java.lang.String message,
java.lang.Throwable nested)
message - the messagenested - the nested exception| Method Detail |
public void printStackTrace(java.io.PrintStream ps)
printStackTrace in class java.lang.Throwableps - java.io.PrintStream to send the stack trace topublic void printStackTrace(java.io.PrintWriter pw)
printStackTrace in class java.lang.Throwablepw - java.io.PrintWriter to send the stack trace topublic java.lang.Throwable getNestedException()
public boolean hasNestedException()
public java.lang.String toString()
toString in class java.lang.Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||