CacheException.php 511 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace Doctrine\DBAL\Cache;
  3. use Doctrine\DBAL\DBALException;
  4. class CacheException extends DBALException
  5. {
  6. /**
  7. * @return \Doctrine\DBAL\Cache\CacheException
  8. */
  9. public static function noCacheKey()
  10. {
  11. return new self('No cache key was set.');
  12. }
  13. /**
  14. * @return \Doctrine\DBAL\Cache\CacheException
  15. */
  16. public static function noResultDriverConfigured()
  17. {
  18. return new self('Trying to cache a query but no result driver is configured.');
  19. }
  20. }