Class RateLimitExceededException
- Namespace
- Excalibur.Dispatch.Middleware.Resilience
- Assembly
- Excalibur.Dispatch.dll
Exception thrown when rate limit is exceeded.
public sealed class RateLimitExceededException : Exception, ISerializable
- Inheritance
-
RateLimitExceededException
- Implements
- Inherited Members
- Extension Methods
Remarks
Initializes a new instance of the RateLimitExceededException class.
Constructors
RateLimitExceededException()
Initializes a new instance of the RateLimitExceededException class.
public RateLimitExceededException()
RateLimitExceededException(string)
Exception thrown when rate limit is exceeded.
public RateLimitExceededException(string message)
Parameters
messagestringThe exception message.
Remarks
Initializes a new instance of the RateLimitExceededException class.
RateLimitExceededException(string?, Exception?)
Initializes a new instance of the RateLimitExceededException class with a message and inner exception.
public RateLimitExceededException(string? message, Exception? innerException)
Parameters
Remarks
The innerException parameter cannot be forwarded to the base Exception(string, Exception)
constructor because the primary constructor locks the base call to Exception(message).
This overload exists to satisfy the standard exception constructor pattern (CA1032).
Properties
RateLimiterKey
Gets or sets the rate limiter key that was exceeded.
public string? RateLimiterKey { get; set; }
Property Value
- string
The current RateLimiterKey value.
RetryAfter
Gets or sets the time after which to retry.
public TimeSpan? RetryAfter { get; set; }
Property Value
- TimeSpan?
The current RetryAfter value.