class InvalidInput extends ValidatorException

Properties

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

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

in ValidatorException 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

in ValidatorException at line line 33
__construct( MessageBag $fields)

Parameters

MessageBag $fields