PayloadValidationException Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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) |