Constructor AIValidationException
- Namespace
- IntentSharp.Providers
- Assembly
- IntentSharp.dll
AIValidationException(string, string?, int)
Creates a non-transient exception for a rejected request.
public AIValidationException(string message, string? providerName = null, int statusCode = 400)
Parameters
messagestringWhat was rejected.
providerNamestringThe provider's name, or null when it is not known.
statusCodeintThe HTTP status, 400 or 422. Default 400.
AIValidationException(string, Exception, string?, int)
Creates a non-transient exception for a rejected request, with the exception that caused it.
public AIValidationException(string message, Exception innerException, string? providerName = null, int statusCode = 400)
Parameters
messagestringWhat was rejected.
innerExceptionExceptionThe exception that caused the rejection.
providerNamestringThe provider's name, or null when it is not known.
statusCodeintThe HTTP status, 400 or 422. Default 400.