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 the fallback.

public FallbackPolicy<T> HandleException(Func<Exception, bool> shouldHandle)

Parameters

shouldHandle Func<Exception, bool>

Predicate returning true for exceptions to handle.

Returns

FallbackPolicy<T>

This policy for method chaining.