Skip to content

Commit

Permalink
Update exception type.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Aug 31, 2014
1 parent 7563ae2 commit 094378e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Cache/Engine/FileEngine.php
Expand Up @@ -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
Expand Down Expand Up @@ -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.');
}

/**
Expand All @@ -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.');
}

/**
Expand Down

0 comments on commit 094378e

Please sign in to comment.