Class EmptyExceptionHandler

  extended bymandala.util.EmptyExceptionHandler
All Implemented Interfaces:

public class EmptyExceptionHandler
extends java.lang.Object
implements ExceptionHandler,

Empty implementation of the ExceptionHandler interface.

This implementation always returns null

$Revision: 1.6 $
See Also:
ExceptionHandler, Serialized Form

Nested Class Summary
Nested classes inherited from class mandala.util.ExceptionHandler
ExceptionHandler.RejectExceptionHandling, ExceptionHandler.UnHandledException
Constructor Summary
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

Constructor Detail


public EmptyExceptionHandler()
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