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 count toward the threshold.

public CircuitBreakerPolicy HandleException(Func<Exception, bool> shouldCount)

Parameters

shouldCount Func<Exception, bool>

Predicate returning true if the exception should count.

Returns

CircuitBreakerPolicy

This policy for method chaining.