org.metasyntactic.core
Class WrappedException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--org.metasyntactic.core.WrappedException
All Implemented Interfaces:
java.io.Serializable

public class WrappedException
extends java.lang.RuntimeException

This class is intended for people who are subclassing methods and need to be able to throw more exceptions then those declared in the base class. Wrapped exceptions allow the original exception to be percolated up to a class better equipped to handle it

See Also:
Serialized Form

Constructor Summary
WrappedException(java.lang.Throwable t)
          Creates a new wrapped exceptions that wraps t
 
Method Summary
 java.lang.String getLocalizedMessage()
           
 java.lang.String getMessage()
           
 java.lang.Throwable getOriginalException()
           
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream s)
           
 void printStackTrace(java.io.PrintWriter s)
           
 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

WrappedException

public WrappedException(java.lang.Throwable t)
Creates a new wrapped exceptions that wraps t

Parameters:
t - the Throwable to wrap
Method Detail

getOriginalException

public java.lang.Throwable getOriginalException()

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Overrides:
getLocalizedMessage in class java.lang.Throwable

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream s)
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Overrides:
printStackTrace in class java.lang.Throwable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable