net.wotonomy.foundation.internal
Class WotonomyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.wotonomy.foundation.internal.WotonomyException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
IntrospectorException

public class WotonomyException
extends java.lang.RuntimeException

This is a simple RuntimeException that can encapsulate another throwable. Behaves as a normal RuntimeException except that it prints a stack trace of the wrapped throwable if one is specified. Intended to be used anytime you'd report an exception with System.out.println: that is, for debugging and non-user-visible exceptions.

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
WotonomyException()
          Default constructor.
WotonomyException(java.lang.String aMessage)
          Standard constructor with message.
WotonomyException(java.lang.String aMessage, java.lang.Throwable aThrowable)
          Specifies a message and a throwable to wrap.
WotonomyException(java.lang.Throwable aThrowable)
          Specifies a throwable to wrap.
 
Method Summary
 java.lang.Throwable getWrappedThrowable()
          Returns the wrapped throwable.
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream s)
           
 void printStackTrace(java.io.PrintWriter s)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
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

WotonomyException

public WotonomyException()
Default constructor.


WotonomyException

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


WotonomyException

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


WotonomyException

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

Method Detail

getWrappedThrowable

public java.lang.Throwable getWrappedThrowable()
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


Copyright © 2006 null. All Rights Reserved.