org.omnaest.utils.events.exception.basic
Class ExceptionHandlerDelegate

java.lang.Object
  extended by org.omnaest.utils.events.exception.basic.ExceptionHandlerDelegate
All Implemented Interfaces:
Serializable, ExceptionHandler, ExceptionHandlerSerializable

public class ExceptionHandlerDelegate
extends Object
implements ExceptionHandlerSerializable

ExceptionHandler which delegates to another instance

Author:
Omnaest
See Also:
Serialized Form

Constructor Summary
ExceptionHandlerDelegate(ExceptionHandler exceptionHandler)
           
 
Method Summary
 void handleException(Exception e)
          Handles the given Exception
 void setExceptionHandler(ExceptionHandler exceptionHandler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionHandlerDelegate

public ExceptionHandlerDelegate(ExceptionHandler exceptionHandler)
Parameters:
exceptionHandler -
See Also:
ExceptionHandlerDelegate
Method Detail

handleException

public void handleException(Exception e)
Description copied from interface: ExceptionHandler
Handles the given Exception

Specified by:
handleException in interface ExceptionHandler
Parameters:
e - Exception

setExceptionHandler

public void setExceptionHandler(ExceptionHandler exceptionHandler)
Parameters:
exceptionHandler - ExceptionHandler


Copyright © 2013. All Rights Reserved.