|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.jscience.util.NestedException
public class NestedException
A general perpose Exception that can wrap another exception.
It is common practice in BioJava to throw a NestedException or a subclass of it when something goes wrong. The exception can be used to catch another throwable, thus keeping a complete record of where the original error originated while adding annotation to the stack-trace. It also affords a neat way to avoid exception-bloat on method calls, particularly when objects are composed from several objects from different packages.
| Constructor Summary | |
|---|---|
NestedException()
Creates a new NestedException object. |
|
NestedException(java.lang.String message)
Creates a new NestedException object. |
|
NestedException(java.lang.Throwable ex)
Creates a new NestedException object. |
|
NestedException(java.lang.Throwable ex,
java.lang.String message)
Creates a new NestedException object. |
|
| Method Summary | |
|---|---|
void |
printStackTrace()
DOCUMENT ME! |
void |
printStackTrace(java.io.PrintStream ps)
DOCUMENT ME! |
void |
printStackTrace(java.io.PrintWriter pw)
DOCUMENT ME! |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NestedException(java.lang.String message)
message - DOCUMENT ME!public NestedException(java.lang.Throwable ex)
ex - DOCUMENT ME!
public NestedException(java.lang.Throwable ex,
java.lang.String message)
ex - DOCUMENT ME!message - DOCUMENT ME!public NestedException()
| Method Detail |
|---|
public void printStackTrace()
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintStream ps)
printStackTrace in class java.lang.Throwableps - DOCUMENT ME!public void printStackTrace(java.io.PrintWriter pw)
printStackTrace in class java.lang.Throwablepw - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||