Constructor AIProviderException
- Namespace
- IntentSharp.Providers
- Assembly
- IntentSharp.dll
AIProviderException(string, string?, int?, bool)
Creates the exception for a failed provider call.
public AIProviderException(string message, string? providerName = null, int? statusCode = null, bool isTransient = false)
Parameters
messagestringWhat failed.
providerNamestringThe provider's name, or null when it is not known.
statusCodeint?The HTTP status, or null when no reply arrived.
isTransientboolTrue when the same request may succeed if retried; a transient failure can fall back to the secondary provider.
AIProviderException(string, Exception, string?, int?, bool)
Creates the exception for a failed provider call, with the exception that caused it.
public AIProviderException(string message, Exception innerException, string? providerName = null, int? statusCode = null, bool isTransient = false)
Parameters
messagestringWhat failed.
innerExceptionExceptionThe exception that caused the failure.
providerNamestringThe provider's name, or null when it is not known.
statusCodeint?The HTTP status, or null when no reply arrived.
isTransientboolTrue when the same request may succeed if retried; a transient failure can fall back to the secondary provider.