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

__construct(Validator $validator, Response|null $response = null, string $errorBag = 'default')

Create a new exception instance.

withMessages(array $messages)

Create a new validation exception from a plain array of messages.

static string
summarize(Validator $validator)

Create an error message summary from the validation errors.

array
errors()

Get all of the validation error messages.

status(int $status)

Set the HTTP status code to be used for the response.

errorBag(string $errorBag)

Set the error bag on the exception.

redirectTo(string $url)

Set the URL to redirect to on a validation error.

Response|null
getResponse()

Get the underlying response instance.

make(string $message = 'Unable to register passkey. Please try again.')

Create a new invalid passkey exception.

Details

__construct(Validator $validator, Response|null $response = null, string $errorBag = 'default')

Create a new exception instance.

Parameters

Validator $validator

the validator instance

Response|null $response

the recommended response to send to the client

string $errorBag

the name of the error bag

static ValidationException withMessages(array $messages)

Create a new validation exception from a plain array of messages.

Parameters

array $messages

Return Value

ValidationException

static protected string summarize(Validator $validator)

Create an error message summary from the validation errors.

Parameters

Validator $validator

Return Value

string

array errors()

Get all of the validation error messages.

Return Value

array

ValidationException status(int $status)

Set the HTTP status code to be used for the response.

Parameters

int $status

Return Value

ValidationException

ValidationException errorBag(string $errorBag)

Set the error bag on the exception.

Parameters

string $errorBag

Return Value

ValidationException

in ValidationException at line 107
ValidationException redirectTo(string $url)

Set the URL to redirect to on a validation error.

Parameters

string $url

Return Value

ValidationException

in ValidationException at line 117
Response|null getResponse()

Get the underlying response instance.

Return Value

Response|null

at line 14
static InvalidPasskeyException make(string $message = 'Unable to register passkey. Please try again.')

Create a new invalid passkey exception.

Parameters

string $message

Return Value

InvalidPasskeyException