Debian Codegraph @

vendor/spomky-labs/otphp/src/Exception/InvalidLabelException.php

raw
1 <?php
2
3 declare(strict_types=1);
4
5 namespace OTPHP\Exception;
6
7 use InvalidArgumentException;
8 use Throwable;
9
10 /**
11 * Exception thrown when a label or issuer format is invalid.
12 * This includes violations of the Google Authenticator label specification.
13 */
14 final class InvalidLabelException extends InvalidArgumentException implements OTPExceptionInterface
15 {
16 public function __construct(
17 string $message,
18 public readonly string $labelName = '',
19 public readonly mixed $labelValue = null,
20 int $code = 0,
21 ?Throwable $previous = null
22 ) {
23 parent::__construct($message, $code, $previous);
24 }
25 }