Esc
API Index — Namespaces, Packages, Reports, Indices
ValidationException
extends RuntimeException
in package
FinalYes
Thrown by {@see Component::validate()} when a field fails its rules. The component endpoint catches it, keeps the errors on the component and re-renders it with status 422.
Table of Contents
Properties
- $errors : array<string|int, mixed>
Methods
- __construct() : mixed
Properties
$errors read-only
public
array<string|int, mixed>
$errors
Methods
__construct()
public
__construct(array<string, string> $errors) : mixed
Parameters
- $errors : array<string, string>
-
field → message