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
messagestringWhat was rejected.
providerNamestringThe provider's name, or null when it is not known.
statusCodeintThe 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
messagestringWhat was rejected.
innerExceptionExceptionThe exception that caused the rejection.
providerNamestringThe provider's name, or null when it is not known.
statusCodeintThe HTTP status, 401 or 403. Default 401.