DiscordPHP-NHA Documentation

ValidationException extends DomainException
in package

Thrown when the NHA API responds with 422 Unprocessable Entity.

This means the request we sent was malformed or did not match the schema the API expects (e.g. a missing/invalid field) — it is a client-side bug, not a transient failure, so it is never retried automatically. The message carries the raw response body, whose shape is the HTTPValidationError schema (a detail list of per-field errors).

Tags
link

#/components/schemas/HTTPValidationError

see
Http::handleError()

Where a 422 response is turned into this exception

author

Valithor Obsidion valithor@discordphp.org

Table of Contents

On this page
  • Table Of Contents

Search results