for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Egils\Component\Cache package.
*
* (c) Egidijus Lukauskas <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Egils\Component\Cache;
use Exception;
use Psr\Cache\CacheException as CacheExceptionInterface;
class CacheException extends Exception implements CacheExceptionInterface
{
/**
* @param string $name
* @return CacheException
public static function adapterAlreadyExists($name)
return new static('Adapter \'' . $name . '\' already exists');
}
public static function adapterNameNotString($name)
return new static('Adapter name expected to be string, ' . gettype($name) . ' given');
public static function adapterDoesNotExist($name)
return new static('Adapter \'' . $name . '\' does not exist');
/** @return CacheException */
public static function defaultAdapterNotSet()
return new static('Default adapter is not set');