|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectThrowable
Exception
RuntimeException
GeneralException
public class GeneralException
A general-purpose exception used for problems that may occasionally happen and are expected to. When one of these is thrown, the errorGen stylesheet only receives a callstack if isSevere() returns true.
Field Summary | |
---|---|
AttribList |
attribs
Attributes that give more info on the exception |
Constructor Summary | |
---|---|
GeneralException(String message)
Default constructor. |
|
GeneralException(String message,
Throwable cause)
Constructor that includes a reference to the exception that caused this one. |
Method Summary | |
---|---|
boolean |
isSevere()
Tells whether this is a really bad problem. |
void |
set(String attribName,
String attribValue)
Sets an attribute for further information on the exception. |
Methods inherited from class Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public AttribList attribs
Constructor Detail |
---|
public GeneralException(String message)
message
- Description of what happenedpublic GeneralException(String message, Throwable cause)
message
- Description of what happenedcause
- The exception that caused this one.Method Detail |
---|
public void set(String attribName, String attribValue)
public boolean isSevere()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |