Debian Codegraph @

vendor/spomky-labs/otphp/src/Exception/ParameterNotFoundException.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 attempting to access a parameter that doesn't exist.
12 */
13 final class ParameterNotFoundException extends InvalidArgumentException implements OTPExceptionInterface
14 {
15 public function __construct(
16 string $message,
17 public readonly string $parameterName = '',
18 int $code = 0,
19 ?Throwable $previous = null
20 ) {
21 parent::__construct($message, $code, $previous);
22 }
23 }