Skip to content
Permalink
Browse files

Update exception type.

  • Loading branch information...
ADmad committed Aug 31, 2014
1 parent 7563ae2 commit 094378ea3a51ade964d03180b838a5a1ac18ca10
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/Cache/Engine/FileEngine.php
@@ -17,7 +17,7 @@
use Cake\Cache\CacheEngine;
use Cake\Core\Configure;
use Cake\Utility\Inflector;
use Exception;
use LogicException;
/**
* File Storage engine for cache. Filestorage is the slowest cache storage
@@ -330,10 +330,10 @@ protected function _clearDirectory($path, $now, $threshold) {
* @param string $key The key to decrement
* @param int $offset The number to offset
* @return void
* @throws \Exception
* @throws \LogicException
*/
public function decrement($key, $offset = 1) {
throw new Exception('Files cannot be atomically decremented.');
throw new LogicException('Files cannot be atomically decremented.');
}
/**
@@ -342,10 +342,10 @@ public function decrement($key, $offset = 1) {
* @param string $key The key to decrement
* @param int $offset The number to offset
* @return void
* @throws \Exception
* @throws \LogicException
*/
public function increment($key, $offset = 1) {
throw new Exception('Files cannot be atomically incremented.');
throw new LogicException('Files cannot be atomically incremented.');
}
/**

0 comments on commit 094378e

Please sign in to comment.
You can’t perform that action at this time.