Skip to content

Commit

Permalink
Add TelemetrySource to RateLimiterRejectedException
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-csala committed Oct 17, 2024
1 parent 7d7613e commit dc687af
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Polly.RateLimiting/RateLimiterRejectedException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public RateLimiterRejectedException(string message)
/// Initializes a new instance of the <see cref="RateLimiterRejectedException"/> class.
/// </summary>
/// <param name="message">The message that describes the error.</param>
/// <param name="telemetrySource">The source pipeline and strategy names.</param>
/// <param name="telemetrySource">A string representing the source of the telemetry.</param>
public RateLimiterRejectedException(string message, string telemetrySource)
: base(message)
=> TelemetrySource = telemetrySource;
Expand All @@ -60,7 +60,7 @@ public RateLimiterRejectedException(string message, TimeSpan retryAfter)
/// Initializes a new instance of the <see cref="RateLimiterRejectedException"/> class.
/// </summary>
/// <param name="message">The message that describes the error.</param>
/// <param name="telemetrySource">The source pipeline and strategy names.</param>
/// <param name="telemetrySource">A string representing the source of the telemetry.</param>
/// <param name="retryAfter">The retry after value.</param>
public RateLimiterRejectedException(string message, string telemetrySource, TimeSpan retryAfter)
: base(message)
Expand All @@ -80,7 +80,7 @@ public RateLimiterRejectedException(string message, Exception inner)
/// Initializes a new instance of the <see cref="RateLimiterRejectedException"/> class.
/// </summary>
/// <param name="message">The message that describes the error.</param>
/// <param name="telemetrySource">The source pipeline and strategy names.</param>
/// <param name="telemetrySource">A string representing the source of the telemetry.</param>
/// <param name="inner">The inner exception.</param>
public RateLimiterRejectedException(string message, string telemetrySource, Exception inner)
: base(message, inner)
Expand All @@ -100,7 +100,7 @@ public RateLimiterRejectedException(string message, TimeSpan retryAfter, Excepti
/// Initializes a new instance of the <see cref="RateLimiterRejectedException"/> class.
/// </summary>
/// <param name="message">The message that describes the error.</param>
/// <param name="telemetrySource">The source pipeline and strategy names.</param>
/// <param name="telemetrySource">A string representing the source of the telemetry.</param>
/// <param name="retryAfter">The retry after value.</param>
/// <param name="inner">The inner exception.</param>
public RateLimiterRejectedException(string message, string telemetrySource, TimeSpan retryAfter, Exception inner)
Expand All @@ -117,7 +117,7 @@ public RateLimiterRejectedException(string message, string telemetrySource, Time
public TimeSpan? RetryAfter { get; }

/// <summary>
/// Gets the name of the strategy which has thrown the exception.
/// Gets the source of the strategy which has thrown the exception, if known.
/// </summary>
public string? TelemetrySource { get; }

Expand Down

0 comments on commit dc687af

Please sign in to comment.