类 ExceptionTypeFilter
- java.lang.Object
- org.springframework.util.InstanceFilter<Class<? extends Throwable>>
- org.springframework.util.ExceptionTypeFilter
public class ExceptionTypeFilter extends InstanceFilter<Class<? extends Throwable>>
AnInstanceFilter
implementation that handles exception types. A type will match against a given candidate if it is assignable to that candidate.- 从以下版本开始:
- 4.1
- 作者:
- Stephane Nicoll
构造器概要
构造器 构造器 说明 ExceptionTypeFilter(Collection<? extends Class<? extends Throwable>> includes, Collection<? extends Class<? extends Throwable>> excludes, boolean matchIfEmpty)
构造器详细资料
ExceptionTypeFilter
public ExceptionTypeFilter(Collection<? extends Class<? extends Throwable>> includes, Collection<? extends Class<? extends Throwable>> excludes, boolean matchIfEmpty)
方法详细资料
match
protected boolean match(Class<? extends Throwable> instance, Class<? extends Throwable> candidate)
从类复制的说明:InstanceFilter
Determine if the specifiedinstance
is equal to the specifiedcandidate
.- 覆盖:
match
在类中InstanceFilter<Class<? extends Throwable>>
- 参数:
instance
- the instance to handlecandidate
- a candidate defined by this filter- 返回:
true
if the instance matches the candidate