Constructor AIProviderInternalException
- Namespace
- IntentSharp.Providers
- Assembly
- IntentSharp.dll
AIProviderInternalException(string, int, string?)
Creates a transient exception for a provider service error.
public AIProviderInternalException(string message, int statusCode = 500, string? providerName = null)
Parameters
messagestringWhat failed.
statusCodeintThe HTTP status. Default 500.
providerNamestringThe provider's name, or null when it is not known.
AIProviderInternalException(string, Exception, int, string?)
Creates a transient exception for a provider service error, with the exception that caused it.
public AIProviderInternalException(string message, Exception innerException, int statusCode = 500, string? providerName = null)
Parameters
messagestringWhat failed.
innerExceptionExceptionThe exception that caused the failure.
statusCodeintThe HTTP status. Default 500.
providerNamestringThe provider's name, or null when it is not known.