public class ExceptionTypeFilter extends InstanceFilter<Class<? extends Throwable>>
InstanceFilter
implementation that handles exception types. A type
will match against a given candidate if it is assignable to that candidate.Constructor and Description |
---|
ExceptionTypeFilter(Collection<? extends Class<? extends Throwable>> includes,
Collection<? extends Class<? extends Throwable>> excludes,
boolean matchIfEmpty) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
match(Class<? extends Throwable> instance,
Class<? extends Throwable> candidate)
Determine if the specified
instance is equal to the
specified candidate . |
match, match, toString
public ExceptionTypeFilter(Collection<? extends Class<? extends Throwable>> includes, Collection<? extends Class<? extends Throwable>> excludes, boolean matchIfEmpty)
protected boolean match(Class<? extends Throwable> instance, Class<? extends Throwable> candidate)
InstanceFilter
instance
is equal to the
specified candidate
.match
in class InstanceFilter<Class<? extends Throwable>>
instance
- the instance to handlecandidate
- a candidate defined by this filtertrue
if the instance matches the candidate