Documentation
Table of Contents

Constructor AIAuthenticationException

Namespace
IntentSharp.Providers
Assembly
IntentSharp.dll

AIAuthenticationException(string, string?, int)

Creates a non-transient exception for a rejected API key.

public AIAuthenticationException(string message, string? providerName = null, int statusCode = 401)

Parameters

message string

What was rejected.

providerName string

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

statusCode int

The HTTP status, 401 or 403. Default 401.

AIAuthenticationException(string, Exception, string?, int)

Creates a non-transient exception for a rejected API key, with the exception that caused it.

public AIAuthenticationException(string message, Exception innerException, string? providerName = null, int statusCode = 401)

Parameters

message string

What was rejected.

innerException Exception

The exception that caused the rejection.

providerName string

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

statusCode int

The HTTP status, 401 or 403. Default 401.