|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
Exceptions.GeneralException
public class GeneralException
Custom exception class that provides different levels of information in a call
to toString()
based on a debug level.
Nested Class Summary | |
---|---|
static class |
GeneralException.Debug
Enumeration of the different debug levels |
Constructor Summary | |
---|---|
GeneralException(java.lang.String message,
java.lang.Throwable cause)
Default constructor |
Method Summary | |
---|---|
static void |
setDebug(GeneralException.Debug i)
Set debug level |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GeneralException(java.lang.String message, java.lang.Throwable cause)
message
- The reason for the problemcause
- The underlying throwable that caused the problem if applicable or null
if notMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Throwable
public static void setDebug(GeneralException.Debug i)
i
- The debug level.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |