public class ExceptionTypeFilter extends InstanceFilter<java.lang.Class<? extends java.lang.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(java.util.Collection<? extends java.lang.Class<? extends java.lang.Throwable>> includes,
java.util.Collection<? extends java.lang.Class<? extends java.lang.Throwable>> excludes,
boolean matchIfEmpty) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
match(java.lang.Class<? extends java.lang.Throwable> instance,
java.lang.Class<? extends java.lang.Throwable> candidate)
Determine if the specified
instance is equal to the
specified candidate. |
match, match, toStringpublic ExceptionTypeFilter(java.util.Collection<? extends java.lang.Class<? extends java.lang.Throwable>> includes,
java.util.Collection<? extends java.lang.Class<? extends java.lang.Throwable>> excludes,
boolean matchIfEmpty)
protected boolean match(java.lang.Class<? extends java.lang.Throwable> instance,
java.lang.Class<? extends java.lang.Throwable> candidate)
InstanceFilterinstance is equal to the
specified candidate.match in class InstanceFilter<java.lang.Class<? extends java.lang.Throwable>>instance - the instance to handlecandidate - a candidate defined by this filtertrue if the instance matches the candidate