mandala.util
Class SyslogExceptionHandler
java.lang.Object
mandala.util.SyslogExceptionHandler
- All Implemented Interfaces:
- ExceptionHandler
- public class SyslogExceptionHandler
- extends Object
- implements ExceptionHandler
This implementation of the ExceptionHandler
interface is
intended for debugging purpose. It uses Syslog
This implementation always returns
ExceptionHandler.RejectExceptionHandling.REJECT
- Version:
- $Revision: 1.8 $
- Author:
- eipi
- See Also:
ExceptionHandler
,
Syslog
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SyslogExceptionHandler
public SyslogExceptionHandler(Syslog syslog)
handleException
public Object handleException(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
- Parameters:
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.
- Returns:
- 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