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.| 构造器和说明 |
|---|
ExceptionTypeFilter(Collection<? extends Class<? extends Throwable>> includes,
Collection<? extends Class<? extends Throwable>> excludes,
boolean matchIfEmpty) |
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)
InstanceFilterinstance is equal to the
specified candidate.match 在类中 InstanceFilter<Class<? extends Throwable>>instance - the instance to handlecandidate - a candidate defined by this filtertrue if the instance matches the candidate