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.

@FunctionalInterface public interface ExceptionFilter
Filter for limiting the exceptions to be eligible for retry.
Since:
3.0.0 (renamed from v2.x IExceptionFilter)
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Filters an exception.
  • Method Details

    • retry

      boolean retry(Exception e)
      Filters an exception. Runtime exceptions can be of any type, but checked exceptions are always wrapped in a RetriableException.
      Parameters:
      e - the exception to filter
      Returns:
      true if the exception should trigger a retry, false to abort execution