for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\Cache\Exception;
use RuntimeException;
use Throwable;
abstract class CacheException extends RuntimeException implements \Psr\SimpleCache\CacheException
{
public function __construct(
private string $key,
string $message = '',
int $code = 0,
Throwable $previous = null
) {
parent::__construct($message, $code, $previous);
}
public function getKey(): string
return $this->key;