Documentation
Table of Contents

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

message string

What was rejected.

providerName string

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

statusCode int

The 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

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, 400 or 422. Default 400.