PayloadValidationException Class

Definition

Exception thrown when an incoming request payload fails validation against the API schema. Carries the list of per-field validation errors for structured error reporting. Maps to HTTP 400 Bad Request with Error.Details[].

public sealed class PayloadValidationException : Azure.AI.AgentServer.Responses.BadRequestException
type PayloadValidationException = class
    inherit BadRequestException
Public NotInheritable Class PayloadValidationException
Inherits BadRequestException
Inheritance
PayloadValidationException

Constructors

Name Description
PayloadValidationException(IReadOnlyList<ValidationError>)

Initializes a new instance of PayloadValidationException.

Properties

Name Description
Code

Gets the error code identifying the kind of validation failure, if applicable.

(Inherited from BadRequestException)
Errors

Gets the list of validation errors found in the payload.

ParamName

Gets the name of the invalid parameter, if applicable.

(Inherited from BadRequestException)

Applies to