com.acsinet_solutions.util.exception
Class NestedExceptionWrapper

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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

Constructor Summary
NestedExceptionWrapper(java.lang.Throwable throwable)
           
 
Method Summary
 java.lang.String getLocalizedMessage()
           
 java.lang.String getMessage()
           
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream stream)
           
 void printStackTrace(java.io.PrintWriter writer)
           
 java.lang.String toString()
           
 
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
 

Constructor Detail

NestedExceptionWrapper

public NestedExceptionWrapper(java.lang.Throwable throwable)
Method Detail

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