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

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 System; using System.Runtime.Serialization; namespace Polly { public abstract class ExecutionRejectedException : Exception { protected ExecutionRejectedException() { } protected ExecutionRejectedException(string message) : base(message) { } protected ExecutionRejectedException(string message, Exception inner) : base(message, inner) { } protected ExecutionRejectedException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }