Laragear/WebAuthn

View on GitHub
src/Exceptions/AttestationException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?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 static
     */
    public static function make(string $message): static
    {
        return static::withMessages(['attestation' => "Attestation Error: $message"]);
    }
}