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
messagestringWhat was refused.
retryAfterTimeSpan?How long to wait before trying again, or null when unknown.
providerNamestringThe 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
messagestringWhat was refused.
innerExceptionExceptionThe exception that caused the refusal.
retryAfterTimeSpan?How long to wait before trying again, or null when unknown.
providerNamestringThe provider's name, or null when it is not known.