CacheException.php 511 Bytes
Newer Older
1 2 3 4
<?php

namespace Doctrine\DBAL\Cache;

5 6 7
use Doctrine\DBAL\DBALException;

class CacheException extends DBALException
8
{
Benjamin Morel's avatar
Benjamin Morel committed
9 10 11
    /**
     * @return \Doctrine\DBAL\Cache\CacheException
     */
12
    public static function noCacheKey()
13
    {
14
        return new self('No cache key was set.');
15 16
    }

Benjamin Morel's avatar
Benjamin Morel committed
17 18 19
    /**
     * @return \Doctrine\DBAL\Cache\CacheException
     */
20
    public static function noResultDriverConfigured()
21
    {
22
        return new self('Trying to cache a query but no result driver is configured.');
23
    }
Benjamin Eberlei's avatar
Benjamin Eberlei committed
24
}