mandala.util
Class EmptyExceptionHandler

java.lang.Object
  extended bymandala.util.EmptyExceptionHandler
All Implemented Interfaces:
ExceptionHandler, java.io.Serializable

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

Empty implementation of the ExceptionHandler interface.

This implementation always returns null

Version:
$Revision: 1.6 $
Author:
eipi
See Also:
ExceptionHandler, Serialized Form

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

EmptyExceptionHandler

public EmptyExceptionHandler()
Method Detail

handleException

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
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