<PackageReference Include="Polly" Version="8.5.0" />

ExceptionPredicates

public class ExceptionPredicates
A collection of predicates used to define whether a policy handles a given Exception.
public static readonly ExceptionPredicates None

Specifies that no Exception-handling filters are applied or are required.

Assess whether the passed Exception, ex, matches any of the predicates. If the .HandleInner() method was used when configuring the policy, predicates may test whether any inner exceptions of ex match and may return a matching inner exception.