mirror of
https://github.com/zoe-may/TDoG-Skin.git
synced 2024-11-24 22:02:22 +08:00
28 lines
489 B
PHP
28 lines
489 B
PHP
|
<?php
|
||
|
|
||
|
namespace Doctrine\DBAL\Cache;
|
||
|
|
||
|
use Doctrine\DBAL\Exception;
|
||
|
|
||
|
/**
|
||
|
* @psalm-immutable
|
||
|
*/
|
||
|
class CacheException extends Exception
|
||
|
{
|
||
|
/**
|
||
|
* @return CacheException
|
||
|
*/
|
||
|
public static function noCacheKey()
|
||
|
{
|
||
|
return new self('No cache key was set.');
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @return CacheException
|
||
|
*/
|
||
|
public static function noResultDriverConfigured()
|
||
|
{
|
||
|
return new self('Trying to cache a query but no result driver is configured.');
|
||
|
}
|
||
|
}
|