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

ExecutionRejectedException

public abstract class ExecutionRejectedException : Exception
Exception thrown when a policy rejects execution of a delegate. More specific exceptions which derive from this type, are generally thrown.
using Polly.Telemetry; using System; using System.Runtime.CompilerServices; namespace Polly { [System.Runtime.CompilerServices.NullableContext(2)] [System.Runtime.CompilerServices.Nullable(0)] public abstract class ExecutionRejectedException : Exception { public virtual ResilienceTelemetrySource TelemetrySource { get; set; } protected ExecutionRejectedException() { } [System.Runtime.CompilerServices.NullableContext(1)] protected ExecutionRejectedException(string message) : base(message) { } [System.Runtime.CompilerServices.NullableContext(1)] protected ExecutionRejectedException(string message, Exception inner) : base(message, inner) { } } }