org.ikasan.framework.exception.matching
Class MatcherBasedExceptionGroup

java.lang.Object
  extended by org.ikasan.framework.exception.matching.MatcherBasedExceptionGroup
All Implemented Interfaces:
ExceptionGroup

public class MatcherBasedExceptionGroup
extends Object
implements ExceptionGroup

Default implementation of ExceptionGroup uses a TypeSafeMatcher to determine if the given Throwable is a member if this grouping

Author:
Ikasan Development Team

Constructor Summary
MatcherBasedExceptionGroup(org.hamcrest.Matcher<?> matcher, IkasanExceptionAction action)
          Constructor
 
Method Summary
 IkasanExceptionAction getAction()
          Accessor for bound IkasanExceptionAction
 boolean includes(Throwable throwable)
          Determines if the given Throwable is a member of this logical group
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MatcherBasedExceptionGroup

public MatcherBasedExceptionGroup(org.hamcrest.Matcher<?> matcher,
                                  IkasanExceptionAction action)
Constructor

Parameters:
matcher -
action -
Method Detail

getAction

public IkasanExceptionAction getAction()
Description copied from interface: ExceptionGroup
Accessor for bound IkasanExceptionAction

Specified by:
getAction in interface ExceptionGroup
Returns:
bound IkasanExceptionAction

includes

public boolean includes(Throwable throwable)
Description copied from interface: ExceptionGroup
Determines if the given Throwable is a member of this logical group

Specified by:
includes in interface ExceptionGroup
Returns:
true is this throwable should be considered a member

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2012 Ikasan. All Rights Reserved.