Your IP : 216.73.216.84


Current Path : /home/helpink/www/libraries/vendor/web-auth/webauthn-lib/src/Exception/
Upload File :
Current File : /home/helpink/www/libraries/vendor/web-auth/webauthn-lib/src/Exception/CounterException.php

<?php

declare(strict_types=1);

namespace Webauthn\Exception;

use Throwable;

final class CounterException extends WebauthnException
{
    public function __construct(
        public int $currentCounter,
        public int $authenticatorCounter,
        string $message,
        ?Throwable $previous = null
    ) {
        parent::__construct($message, $previous);
    }

    public static function create(
        int $currentCounter,
        int $authenticatorCounter,
        string $message,
        ?Throwable $previous = null
    ): self {
        return new self($currentCounter, $authenticatorCounter, $message, $previous);
    }
}