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
messagestringThe message that describes the error.
RateLimiterRejectedException(string, Exception)
Initializes a new instance of the RateLimiterRejectedException class.
public RateLimiterRejectedException(string message, Exception inner)
Parameters
RateLimiterRejectedException(string, TimeSpan)
Initializes a new instance of the RateLimiterRejectedException class.
public RateLimiterRejectedException(string message, TimeSpan retryAfter)
Parameters
RateLimiterRejectedException(string, TimeSpan, Exception)
Initializes a new instance of the RateLimiterRejectedException class.
public RateLimiterRejectedException(string message, TimeSpan retryAfter, Exception inner)
Parameters
messagestringThe message that describes the error.
retryAfterTimeSpanThe retry after value.
innerExceptionThe inner exception.
RateLimiterRejectedException(TimeSpan)
Initializes a new instance of the RateLimiterRejectedException class.
public RateLimiterRejectedException(TimeSpan retryAfter)
Parameters
retryAfterTimeSpanThe retry after value.
Properties
RetryAfter
Gets the amount of time to wait before retrying again.
public TimeSpan? RetryAfter { get; }
Property Value
Remarks
This value was retrieved from the RateLimitLease by reading the RetryAfter.
Defaults to null.