CoreFiles by mySites.guru
InvalidClaimException.php37 lines, 742 bytes, from Joomla_5.3.2-Stable-Full_Package.zip
Raw History Compare with 5.3.1
md5
44ad11b977f59deef901820df67e03d9
sha1
c5892ecff51bd437c0856a9e454f877b669db907
sha256
ee7a69989a44a5cf376a0f59dddaddc2762b8f100ff3065d2cb771d3e8381012
<?php

declare(strict_types=1);

namespace Jose\Component\Checker;

use Exception;

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

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

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

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