Table of Contents

Method HandleException

Namespace
LMKit.Agents.Resilience
Assembly
LM-Kit.NET.dll

HandleException(Func<Exception, bool>)

Sets a predicate to determine which exceptions should trigger a retry.

public RetryPolicy HandleException(Func<Exception, bool> shouldRetry)

Parameters

shouldRetry Func<Exception, bool>

Predicate returning true if the exception should be retried.

Returns

RetryPolicy

This policy for method chaining.