jimmc.util
Class MoreException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--jimmc.util.MoreException
All Implemented Interfaces:
java.io.Serializable

public class MoreException
extends java.lang.RuntimeException

A wrapper class to encapsulate an exception with additional information.

See Also:
Serialized Form

Field Summary
protected  java.lang.String message
          Our additional message string.
protected  java.lang.Throwable throwable
          The throwable (exception) we are wrapping.
 
Constructor Summary
MoreException(java.lang.Throwable throwable)
          Create an exception to wrap another exception.
MoreException(java.lang.Throwable throwable, java.lang.String message)
          Create a wrapper exception with additional information.
 
Method Summary
 java.lang.String getMessage()
          Get the message for this exception.
 void printStackTrace()
          When printing a traceback, print ours as well as the nested throwable.
 void printStackTrace(java.io.PrintStream s)
          When printing a traceback, print ours as well as the nested throwable.
 void printStackTrace(java.io.PrintWriter w)
          When printing a traceback, print ours as well as the nested throwable.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

throwable

protected java.lang.Throwable throwable
The throwable (exception) we are wrapping.

message

protected java.lang.String message
Our additional message string.
Constructor Detail

MoreException

public MoreException(java.lang.Throwable throwable)
Create an exception to wrap another exception.

MoreException

public MoreException(java.lang.Throwable throwable,
                     java.lang.String message)
Create a wrapper exception with additional information.
Method Detail

getMessage

public java.lang.String getMessage()
Get the message for this exception.
Overrides:
getMessage in class java.lang.Throwable

printStackTrace

public void printStackTrace()
When printing a traceback, print ours as well as the nested throwable.
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream s)
When printing a traceback, print ours as well as the nested throwable.
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter w)
When printing a traceback, print ours as well as the nested throwable.
Overrides:
printStackTrace in class java.lang.Throwable