FormValidationException
extends Exception
in package
This exception is thrown when a form has failed validation.
Table of Contents
- $errors : array<string|int, mixed>
- Contains the fields that have failed validation
- __construct() : mixed
- getErrors() : array<string|int, FormValidationFieldError>
- Returns the fields that have failed validation
Properties
$errors
Contains the fields that have failed validation
private
array<string|int, mixed>
$errors
Methods
__construct()
public
__construct(array<string|int, FormValidationFieldError> $errors, int $code[, Throwable|null $previous = null ]) : mixed
Parameters
- $errors : array<string|int, FormValidationFieldError>
- $code : int
- $previous : Throwable|null = null
Return values
mixed —getErrors()
Returns the fields that have failed validation
public
getErrors() : array<string|int, FormValidationFieldError>