OnExceptionPredicate

Predicate to determine if an exception should be considered as a failure. Depending on the mechanism context, this predicate can be used in different ways:

  • retry: used to determine if a retry should be attempted;

  • circuit breaker: used to determine if a failure should be recorded.