|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException net.wotonomy.foundation.internal.WotonomyException
public class WotonomyException
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.
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 |
---|
protected java.lang.String message
protected java.lang.Throwable wrappedThrowable
Constructor Detail |
---|
public WotonomyException()
public WotonomyException(java.lang.String aMessage)
public WotonomyException(java.lang.Throwable aThrowable)
public WotonomyException(java.lang.String aMessage, java.lang.Throwable aThrowable)
Method Detail |
---|
public java.lang.Throwable getWrappedThrowable()
public void printStackTrace(java.io.PrintWriter s)
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream s)
printStackTrace
in class java.lang.Throwable
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |