ValidationException
extends PicklesException
in package
Class ValidationException
Represents an exception that is thrown when a validation error occurs. This class extends the base PicklesException to provide more specific context for validation-related errors within the Pickles Framework.
Table of Contents
Properties
- $errors : array<string|int, mixed>
Methods
- __construct() : mixed
- getErrors() : array<string|int, mixed>
- Retrieves the validation errors associated with the exception.
Properties
$errors
protected
array<string|int, mixed>
$errors
= []
Methods
__construct()
public
__construct([array<string|int, mixed> $errors = [] ]) : mixed
Parameters
- $errors : array<string|int, mixed> = []
getErrors()
Retrieves the validation errors associated with the exception.
public
getErrors() : array<string|int, mixed>
Return values
array<string|int, mixed> —An array of validation error messages.