InvalidPasskeyException
class InvalidPasskeyException extends ValidationException
Properties
| int | $status | The status code to use for the response. |
from ValidationException |
| string|null | $redirectTo | The path the client should be redirected to. |
from ValidationException |
Methods
Create a new exception instance.
Create a new validation exception from a plain array of messages.
Set the HTTP status code to be used for the response.
Set the error bag on the exception.
Set the URL to redirect to on a validation error.
Create a new invalid passkey exception.
Details
in
ValidationException at line 32
__construct(Validator $validator, Response|null $response = null, string $errorBag = 'default')
Create a new exception instance.
in
ValidationException at line 43
static ValidationException
withMessages(array $messages)
Create a new validation exception from a plain array of messages.
in
ValidationException at line 57
static protected string
summarize(Validator $validator)
Create an error message summary from the validation errors.
in
ValidationException at line 79
array
errors()
Get all of the validation error messages.
in
ValidationException at line 87
ValidationException
status(int $status)
Set the HTTP status code to be used for the response.
in
ValidationException at line 97
ValidationException
errorBag(string $errorBag)
Set the error bag on the exception.
in
ValidationException at line 107
ValidationException
redirectTo(string $url)
Set the URL to redirect to on a validation error.
in
ValidationException at line 117
Response|null
getResponse()
Get the underlying response instance.
at line 14
static InvalidPasskeyException
make(string $message = 'Unable to register passkey. Please try again.')
Create a new invalid passkey exception.