Alpha ZealPHP is early-stage and under active development. APIs may change between minor versions until v1.0. Feedback and bug reports welcome on GitHub.
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

Methods

__construct()

public __construct(array<string, string> $errors) : mixed
Parameters
$errors : array<string, string>

field → message

On this page