ValidationException
class ValidationException extends Exception
Properties
protected array | $fields | ||
protected MessageBag | $errors | ||
protected Model | $model | The model with validation errors. |
Methods
void
__construct($validation, Model $model = null)
Create a new validation exception instance.
Model
model()
Get the mdoel with validation errors.
Model
getModel()
Get the mdoel with validation errors.
evalErrors()
Evaluate errors.
MessageBag
getErrors()
Returns directly the message bag instance with the model's errors.
getFields()
Returns invalid fields.
Details
at line 37
void
__construct($validation, Model $model = null)
Create a new validation exception instance.
at line 65
Model
model()
Get the mdoel with validation errors.
at line 75
Model
getModel()
Get the mdoel with validation errors.
at line 83
protected
evalErrors()
Evaluate errors.
at line 96
MessageBag
getErrors()
Returns directly the message bag instance with the model's errors.
at line 104
getFields()
Returns invalid fields.