Package org.springframework.util
Class ExceptionTypeFilter
java.lang.Object
org.springframework.util.InstanceFilter<Class<? extends Throwable>>
org.springframework.util.ExceptionTypeFilter
An
InstanceFilter
implementation that handles exception types. A type
will match against a given candidate if it is assignable to that candidate.- Since:
- 4.1
- Author:
- Stephane Nicoll
-
Constructor Summary
ConstructorDescriptionExceptionTypeFilter
(Collection<? extends Class<? extends Throwable>> includes, Collection<? extends Class<? extends Throwable>> excludes, boolean matchIfEmpty) -
Method Summary
Methods inherited from class org.springframework.util.InstanceFilter
match, match, toString
-
Constructor Details
-
ExceptionTypeFilter
public ExceptionTypeFilter(Collection<? extends Class<? extends Throwable>> includes, Collection<? extends Class<? extends Throwable>> excludes, boolean matchIfEmpty)
-
-
Method Details
-
match
Description copied from class:InstanceFilter
Determine if the specifiedinstance
is equal to the specifiedcandidate
.- Overrides:
match
in classInstanceFilter<Class<? extends Throwable>>
- Parameters:
instance
- the instance to handlecandidate
- a candidate defined by this filter- Returns:
true
if the instance matches the candidate
-