org.bdgp.util
Class NestedError
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Error
|
+--org.bdgp.util.NestedError
- All Implemented Interfaces:
- java.io.Serializable
- public class NestedError
- extends java.lang.Error
A general purpose Error that can wrap another Throwable object.
NestedError is an Error that should be thrown whenever some exceptional and
unforseable event takes place. For example, sometimes exceptions can be
thrown by a given method, but not when the calling method is a member of
the same class. In this case, the try-catch block would collect the
'impossible' exception and throw a NestedError that wraps it.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NestedError
public NestedError(java.lang.String message)
NestedError
public NestedError(java.lang.Throwable ex)
NestedError
public NestedError(java.lang.Throwable ex,
java.lang.String message)
NestedError
public NestedError()
getWrappedException
public java.lang.Throwable getWrappedException()
printStackTrace
public void printStackTrace()
- Overrides:
printStackTrace
in class java.lang.Throwable
printStackTrace
public void printStackTrace(java.io.PrintStream ps)
- Overrides:
printStackTrace
in class java.lang.Throwable
printStackTrace
public void printStackTrace(java.io.PrintWriter pw)
- Overrides:
printStackTrace
in class java.lang.Throwable