net.wotonomy.foundation
Class NSForwardException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.wotonomy.foundation.NSForwardException
All Implemented Interfaces:
java.io.Serializable

public class NSForwardException
extends java.lang.RuntimeException

Serves to wrap an exception inside of a RuntimeException, which is not required to be declared in a throws statement.

Version:
$Revision: 893 $
Author:
michael@mpowers.net, $Author: cgruber $
See Also:
Serialized Form

Field Summary
protected  java.lang.String message
           
protected  java.lang.Throwable wrappedThrowable
           
 
Constructor Summary
NSForwardException()
          Default constructor.
NSForwardException(java.lang.String aMessage)
          Standard constructor with message.
NSForwardException(java.lang.Throwable aThrowable)
          Specifies a throwable to wrap.
NSForwardException(java.lang.Throwable aThrowable, java.lang.String aMessage)
          Specifies a message and a throwable to wrap.
 
Method Summary
 java.lang.Throwable originalException()
          Returns the wrapped throwable.
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream s)
           
 void printStackTrace(java.io.PrintWriter s)
           
 java.lang.String stackTrace()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

message

protected java.lang.String message

wrappedThrowable

protected java.lang.Throwable wrappedThrowable
Constructor Detail

NSForwardException

public NSForwardException()
Default constructor.


NSForwardException

public NSForwardException(java.lang.String aMessage)
Standard constructor with message.


NSForwardException

public NSForwardException(java.lang.Throwable aThrowable)
Specifies a throwable to wrap.


NSForwardException

public NSForwardException(java.lang.Throwable aThrowable,
                          java.lang.String aMessage)
Specifies a message and a throwable to wrap.

Method Detail

originalException

public java.lang.Throwable originalException()
Returns the wrapped throwable.


printStackTrace

public void printStackTrace(java.io.PrintWriter s)
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()
Overrides:
printStackTrace in class java.lang.Throwable

stackTrace

public java.lang.String stackTrace()

toString

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


Copyright © 2006 null. All Rights Reserved.