replace Exception on InitializationException

This commit is contained in:
Vyacheslav Agafonov
2011-11-24 19:34:02 +04:00
parent bdae057a8e
commit 669b68ba4a
4 changed files with 6 additions and 4 deletions

2
cache/Cacher.php vendored
View File

@ -27,7 +27,7 @@ class Cacher
}
$cache = new $cacher($config);
if (!$cache instanceof Cache) {
throw new Exception('Cache driver "' . $cacher . '" must extends Cache');
throw new InitializationException('Cache driver "' . $cacher . '" must extends Cache');
}
self::$caches[$cacher] = $cache;
}