| 1 |
<?php |
| 2 |
|
| 3 |
declare(strict_types=1); |
| 4 |
|
| 5 |
namespace Webauthn\Exception; |
| 6 |
|
| 7 |
use Throwable; |
| 8 |
|
| 9 |
final class MissingMetadataStatementException extends MetadataStatementException |
| 10 |
{ |
| 11 |
public function __construct( |
| 12 |
public readonly string $aaguid, |
| 13 |
string $message, |
| 14 |
?Throwable $previous = null |
| 15 |
) { |
| 16 |
parent::__construct($message, $previous); |
| 17 |
} |
| 18 |
|
| 19 |
public static function create( |
| 20 |
string $aaguid, |
| 21 |
string $message = 'The Metadata Statement is missing', |
| 22 |
?Throwable $previous = null |
| 23 |
): self { |
| 24 |
return new self($aaguid, $message, $previous); |
| 25 |
} |
| 26 |
} |