|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ExceptionHandler
The class that handles the exceptions from all classes in the SituationRecognizer. It also prints out debug information if the DEBUG variable is set to true.
Field Summary | |
static boolean |
DEBUG
If this attribute is set to true debug information will be written to System.out. |
Constructor Summary | |
ExceptionHandler()
|
Method Summary | |
static void |
debugMessage(java.lang.String message)
Writes the given information to System.out if DEBUG is set to true. |
static void |
handleException(java.lang.String message)
Prints the given exception message to System.err. |
static void |
handleException(java.lang.String message,
java.lang.Exception e)
Prints the given message to System.err followed by the message of the given exception. |
static void |
handleException(java.lang.String message,
jess.JessException e)
Prints the given message to System.err followed by some information that is stored in the given JessException. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static boolean DEBUG
Constructor Detail |
public ExceptionHandler()
Method Detail |
public static void handleException(java.lang.String message)
message
- The message that describes the exception.public static void handleException(java.lang.String message, java.lang.Exception e)
message
- A message that gives some extra information about the exception.e
- The exception that was thrown.public static void handleException(java.lang.String message, jess.JessException e)
message
- A message that gives some extra information about the exception.e
- The JessException that was thrown.public static void debugMessage(java.lang.String message)
message
- A message that contains some debug information.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |