First release
This commit is contained in:
20
src/Exceptions/AssertionException.php
Normal file
20
src/Exceptions/AssertionException.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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 \Laragear\WebAuthn\Exceptions\AssertionException
|
||||
*/
|
||||
public static function make(string $message): static
|
||||
{
|
||||
return static::withMessages(['assertion' => "Assertion Error: $message"]);
|
||||
}
|
||||
}
|
||||
20
src/Exceptions/AttestationException.php
Normal file
20
src/Exceptions/AttestationException.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace Laragear\WebAuthn\Exceptions;
|
||||
|
||||
use Illuminate\Validation\ValidationException;
|
||||
use Laragear\WebAuthn\Contracts\WebAuthnException;
|
||||
|
||||
class AttestationException extends ValidationException implements WebAuthnException
|
||||
{
|
||||
/**
|
||||
* Create a new Attestation Exception with the error message.
|
||||
*
|
||||
* @param string $message
|
||||
* @return \Laragear\WebAuthn\Exceptions\AttestationException
|
||||
*/
|
||||
public static function make(string $message): static
|
||||
{
|
||||
return static::withMessages(['attestation' => "Attestation Error: $message"]);
|
||||
}
|
||||
}
|
||||
11
src/Exceptions/DataException.php
Normal file
11
src/Exceptions/DataException.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Laragear\WebAuthn\Exceptions;
|
||||
|
||||
use Exception;
|
||||
use Laragear\WebAuthn\Contracts\WebAuthnException;
|
||||
|
||||
class DataException extends Exception implements WebAuthnException
|
||||
{
|
||||
//
|
||||
}
|
||||
Reference in New Issue
Block a user