Table of Contents

Class RateLimiterRejectedException

Namespace
Polly.RateLimiting
Assembly
Polly.RateLimiting.dll

Exception thrown when a rate limiter rejects an execution.

public sealed class RateLimiterRejectedException : ExecutionRejectedException, ISerializable
Inheritance
RateLimiterRejectedException
Implements
Inherited Members

Constructors

RateLimiterRejectedException()

Initializes a new instance of the RateLimiterRejectedException class.

public RateLimiterRejectedException()

RateLimiterRejectedException(string)

Initializes a new instance of the RateLimiterRejectedException class.

public RateLimiterRejectedException(string message)

Parameters

message string

The message that describes the error.

RateLimiterRejectedException(string, Exception)

Initializes a new instance of the RateLimiterRejectedException class.

public RateLimiterRejectedException(string message, Exception inner)

Parameters

message string

The message that describes the error.

inner Exception

The inner exception.

RateLimiterRejectedException(string, TimeSpan)

Initializes a new instance of the RateLimiterRejectedException class.

public RateLimiterRejectedException(string message, TimeSpan retryAfter)

Parameters

message string

The message that describes the error.

retryAfter TimeSpan

The retry after value.

RateLimiterRejectedException(string, TimeSpan, Exception)

Initializes a new instance of the RateLimiterRejectedException class.

public RateLimiterRejectedException(string message, TimeSpan retryAfter, Exception inner)

Parameters

message string

The message that describes the error.

retryAfter TimeSpan

The retry after value.

inner Exception

The inner exception.

RateLimiterRejectedException(TimeSpan)

Initializes a new instance of the RateLimiterRejectedException class.

public RateLimiterRejectedException(TimeSpan retryAfter)

Parameters

retryAfter TimeSpan

The retry after value.

Properties

RetryAfter

Gets the amount of time to wait before retrying again.

public TimeSpan? RetryAfter { get; }

Property Value

TimeSpan?

Remarks

This value was retrieved from the RateLimitLease by reading the RetryAfter. Defaults to null.