Files
webauthn/src/Exceptions/AssertionException.php
2022-07-27 14:22:05 -04:00

21 lines
526 B
PHP

<?php
namespace Laragear\WebAuthn\Exceptions;
use Illuminate\Validation\ValidationException;
use Laragear\WebAuthn\Contracts\WebAuthnException;
class AssertionException extends ValidationException implements WebAuthnException
{
/**
* Create a new Assertion Exception with the error message.
*
* @param string $message
* @return static
*/
public static function make(string $message): static
{
return static::withMessages(['assertion' => "Assertion Error: $message"]);
}
}