Documentation
Table of Contents

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

message string

What failed.

providerName string

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

statusCode int?

The HTTP status, or null when no reply arrived.

isTransient bool

True 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

message string

What failed.

innerException Exception

The exception that caused the failure.

providerName string

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

statusCode int?

The HTTP status, or null when no reply arrived.

isTransient bool

True when the same request may succeed if retried; a transient failure can fall back to the secondary provider.