ValidationException

Validation exception class.

 class Winter\Storm\Exception\ValidationException
extends Exception

Extends

Class Description
Exception

Properties

protected $errors : Illuminate\Support\MessageBag

The message bag instance containing validation error messages

protected $fields : array

Collection of invalid fields.

Methods

public __construct ($validation)

Constructor.

Parameters
Property Description
$validation
mixed
Returns
mixed

public getErrors () : Illuminate\Support\MessageBag

Returns directly the message bag instance with the model's errors.

Returns
Illuminate\Support\MessageBag

public getFields ()

Returns invalid fields.

Returns
mixed

protected evalErrors ()

Evaluate errors.

Returns
mixed

Extended by

Class Description
ModelException

Used when validation fails. Contains the invalid model for easy analysis.

ModelException

Used when validation fails. Contains the invalid model for easy analysis.

Copyright © 2024 Winter CMS