Package com.norconex.commons.lang.exec
Interface IExceptionFilter
-
public interface IExceptionFilterFilter for limiting the exceptions to be eligible for retry.- Since:
- 1.13.0 (previously part of now deprecated JEF API)
- Author:
- Pascal Essiembre
- See Also:
Retrier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanretry(Exception e)Filters an exception.
-
-
-
Method Detail
-
retry
boolean retry(Exception e)
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
-
-