Package com.norconex.commons.lang.exec
Interface ExceptionFilter
- All Known Subinterfaces:
IExceptionFilter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Filter for limiting the exceptions to be eligible for retry.
- Since:
- 3.0.0 (renamed from v2.x
IExceptionFilter) - See Also:
-
Method Summary
-
Method Details
-
retry
Filters an exception. Runtime exceptions can be of any type, but checked exceptions are always wrapped in aRetriableException.- Parameters:
e- the exception to filter- Returns:
trueif the exception should trigger a retry,falseto abort execution
-