org.ikasan.framework.exception.matching
Class MatchingExceptionHandler

java.lang.Object
  extended by org.ikasan.framework.exception.matching.MatchingExceptionHandler
All Implemented Interfaces:
IkasanExceptionHandler

public class MatchingExceptionHandler
extends Object
implements IkasanExceptionHandler

Implementation of IkasanExceptionHandler that relies on a configuration of ExceptionGroups to match Throwables and apply Exception Actions Includes ability so set rules that are either specific to named components, on non specific

Author:
Ikasan Development Team

Constructor Summary
MatchingExceptionHandler(List<ExceptionGroup> exceptionGroupings)
          Constructor
MatchingExceptionHandler(List<ExceptionGroup> exceptionGroupings, Map<String,List<ExceptionGroup>> componentExceptionGroupings)
          Constructor
 
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
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MatchingExceptionHandler

public MatchingExceptionHandler(List<ExceptionGroup> exceptionGroupings,
                                Map<String,List<ExceptionGroup>> componentExceptionGroupings)
Constructor

Parameters:
exceptionGroupings -
componentExceptionGroupings -

MatchingExceptionHandler

public MatchingExceptionHandler(List<ExceptionGroup> exceptionGroupings)
Constructor

Parameters:
exceptionGroupings -
Method Detail

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2012 Ikasan. All Rights Reserved.