Documentation
Table of Contents

Constructor AIRateLimitException

Namespace
IntentSharp.Providers
Assembly
IntentSharp.dll

AIRateLimitException(string, TimeSpan?, string?)

Creates a transient exception with status 429.

public AIRateLimitException(string message, TimeSpan? retryAfter = null, string? providerName = null)

Parameters

message string

What was refused.

retryAfter TimeSpan?

How long to wait before trying again, or null when unknown.

providerName string

The provider's name, or null when it is not known.

AIRateLimitException(string, Exception, TimeSpan?, string?)

Creates a transient exception with status 429 and the exception that caused it.

public AIRateLimitException(string message, Exception innerException, TimeSpan? retryAfter = null, string? providerName = null)

Parameters

message string

What was refused.

innerException Exception

The exception that caused the refusal.

retryAfter TimeSpan?

How long to wait before trying again, or null when unknown.

providerName string

The provider's name, or null when it is not known.