0 follower

Abstract Class Yiisoft\Cache\Exception\CacheException

InheritanceYiisoft\Cache\Exception\CacheException » RuntimeException
ImplementsPsr\SimpleCache\CacheException
SubclassesYiisoft\Cache\Exception\RemoveCacheException, Yiisoft\Cache\Exception\SetCacheException

Method Details

Hide inherited methods

__construct() public method

public mixed __construct ( string $key, string $message '', integer $code 0, Throwable|null $previous null )
$key string
$message string
$code integer
$previous Throwable|null

                public function __construct(
    private readonly string $key,
    string $message = '',
    int $code = 0,
    Throwable|null $previous = null
) {
    parent::__construct($message, $code, $previous);
}

            
getKey() public method

public string getKey ( )

                public function getKey(): string
{
    return $this->key;
}