class ValidatorException extends Exception

Properties

protected string $message The error message displayed to the user.
protected integer $status The HTTP status code to respond with on this exception.
protected MessageBag $fields Holds the validation errors.

Methods

[type]
errorResponse()

Gather the message status and error and return them as a formatted JSON response.

Integer
getStatus()

Get the HTTP status associated with this Exception (if applicable).

from Exception
__construct( MessageBag $fields)

No description

Details

at line line 42
[type] errorResponse()

Gather the message status and error and return them as a formatted JSON response.

Return Value

[type] [description]

in Exception at line line 43
Integer getStatus()

Get the HTTP status associated with this Exception (if applicable).

Return Value

Integer

at line line 33
__construct( MessageBag $fields)

Parameters

MessageBag $fields