org.activemath.util
Class ExceptionHandler

java.lang.Object
  extended by org.activemath.util.ExceptionHandler

public class ExceptionHandler
extends Object

A group of methods to enhance the report of errors including possibly emailing some of them.


Constructor Summary
ExceptionHandler()
           
 
Method Summary
static void criticLog(Category cat, String message, Throwable ex)
          Sends the error to the log with the priority "critical", also writes big lines around it so as to mark it as important.
static void logAndUndressException(Category cat, Priority priority, String message, Throwable ex)
          A general routine to report exceptions which are often wrapped.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionHandler

public ExceptionHandler()
Method Detail

criticLog

public static void criticLog(Category cat,
                             String message,
                             Throwable ex)
Sends the error to the log with the priority "critical", also writes big lines around it so as to mark it as important.


logAndUndressException

public static void logAndUndressException(Category cat,
                                          Priority priority,
                                          String message,
                                          Throwable ex)
A general routine to report exceptions which are often wrapped.