Class SyslogExceptionHandler

  extended bymandala.util.SyslogExceptionHandler
All Implemented Interfaces:

public class SyslogExceptionHandler
extends java.lang.Object
implements ExceptionHandler

This implementation of the ExceptionHandler interface is intended for debugging purpose. It uses Syslog

This implementation always returns ExceptionHandler.RejectExceptionHandling.REJECT

$Revision: 1.9 $
See Also:
ExceptionHandler, Syslog

Nested Class Summary
Nested classes inherited from class mandala.util.ExceptionHandler
ExceptionHandler.RejectExceptionHandling, ExceptionHandler.UnHandledException
Field Summary
protected  Syslog syslog
Constructor Summary
SyslogExceptionHandler(Syslog syslog)
Method Summary
 java.lang.Object handleException(java.lang.Object exceptionInfo)
          This method is called when an exception occurs.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


protected final Syslog syslog
Constructor Detail


public SyslogExceptionHandler(Syslog syslog)
Method Detail


public java.lang.Object handleException(java.lang.Object exceptionInfo)
Description copied from interface: ExceptionHandler

This method is called when an exception occurs.

Implementation can print a verbose output, send a mail to an administrator...

The returned object (called newState in the following) provides information on what to do after an exception had been handled by its ExceptionHandler.
If newState != RejectExceptionHandling.REJECT the current thread is allowed to continue its execution has if no exception had been thrown. For this purpose, the thread may use the newState returned object to recover a valid state. Else, the current thread is allowed to re-throw the exception.

Specified by:
handleException in interface ExceptionHandler
exceptionInfo - an object representing informations on the occured exception. It might be, the throwable itself, but can also be a Method object providing enough information to ensure state recovering.
a newState object wich informs the thread whom had called this method (which is probably the one which has caught the exception) the following instruction to execute.

Mandala help mailing list