CoreFiles by mySites.guru
InvalidHeaderException.php37 lines, 755 bytes, from Joomla_6.2.1-Stable-Full_Package.zip
Raw History Compare with 6.2.0
md5
95dd55d017ca79afe6a24d8b09a99763
sha1
08371529197cfa8b96c83125a398a7a5e5bd81bf
sha256
29918ba9311d289eae7b0ca88f1cb5791884d83f6c8444b9fad1388777b234e3
<?php

declare(strict_types=1);

namespace Jose\Component\Checker;

use Exception;

/**
 * This exception is thrown by header parameter checkers when a header parameter check failed.
 */
class InvalidHeaderException extends Exception
{
    public function __construct(
        string $message,
        private readonly string $header,
        private readonly mixed $value
    ) {
        parent::__construct($message);
    }

    /**
     * Returns the header parameter that caused the exception.
     */
    public function getHeader(): string
    {
        return $this->header;
    }

    /**
     * Returns the header parameter value that caused the exception.
     */
    public function getValue(): mixed
    {
        return $this->value;
    }
}

The same content is in 135 releases, Joomla 5.1.0-beta1 to 6.2.1. See them all, or every version of this file.