com.acsinet_solutions.util.exception
Class NestedExceptionWrapper
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.acsinet_solutions.util.exception.NestedExceptionWrapper
- All Implemented Interfaces:
- java.io.Serializable
public final class NestedExceptionWrapper
- extends java.lang.Exception
This exception wrapper wraps any exception - generic or not - and reports
its stack trace in a nested fashion. Useful for error reporting where
nesting error reporting is not implemented and custom error handlers are
not supported.
The exception wrapper acts as a proxy for any other exception; the wrapper
itself does not report any data.
- Author:
- Santiago Arriaga
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getStackTrace, initCause, setStackTrace |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NestedExceptionWrapper
public NestedExceptionWrapper(java.lang.Throwable throwable)
getLocalizedMessage
public final java.lang.String getLocalizedMessage()
- Overrides:
getLocalizedMessage in class java.lang.Throwable
getMessage
public final java.lang.String getMessage()
- Overrides:
getMessage in class java.lang.Throwable
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Throwable
printStackTrace
public final void printStackTrace()
- Overrides:
printStackTrace in class java.lang.Throwable
printStackTrace
public void printStackTrace(java.io.PrintStream stream)
- Overrides:
printStackTrace in class java.lang.Throwable
printStackTrace
public void printStackTrace(java.io.PrintWriter writer)
- Overrides:
printStackTrace in class java.lang.Throwable