org.ikasan.framework.component
Class LoggingExceptionHandlerImpl

java.lang.Object
  extended by org.ikasan.framework.component.LoggingExceptionHandlerImpl
All Implemented Interfaces:
IkasanExceptionHandler

public class LoggingExceptionHandlerImpl
extends Object
implements IkasanExceptionHandler

Simple implementation of IkasanExceptionHandler, that simply logs the exception and returns a predefined IkasanExceptionAction

Author:
Ikasan Development Team

Constructor Summary
LoggingExceptionHandlerImpl()
           
 
Method Summary
 IkasanExceptionAction handleThrowable(String componentName, Throwable throwable)
          Push an exception that occurred outside the scope of handling a data event to the Exception Handler
 IkasanExceptionAction invoke(String componentName, Event event, Throwable throwable)
           
 void setErrorAction(IkasanExceptionAction errorAction)
          Setter for errorAction, overrides the default
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingExceptionHandlerImpl

public LoggingExceptionHandlerImpl()
Method Detail

invoke

public IkasanExceptionAction invoke(String componentName,
                                    Event event,
                                    Throwable throwable)

handleThrowable

public IkasanExceptionAction handleThrowable(String componentName,
                                             Throwable throwable)
Description copied from interface: IkasanExceptionHandler
Push an exception that occurred outside the scope of handling a data event to the Exception Handler

Specified by:
handleThrowable in interface IkasanExceptionHandler
Parameters:
componentName - name of the component within which the exception occurred
throwable - The exception
Returns:
IkasanExceptionAction

setErrorAction

public void setErrorAction(IkasanExceptionAction errorAction)
Setter for errorAction, overrides the default

Parameters:
errorAction -


Copyright © 2007-2012 Ikasan. All Rights Reserved.