Skip to content

Commit a180a50

Browse files
committed
Remove deprecations
1 parent d01eb33 commit a180a50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/View/Helper/TimeHelper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Cake\Core\App;
66
use Cake\Core\Configure;
7-
use Cake\Core\Exception\Exception;
7+
use Cake\Core\Exception\CakeException;
88
use Cake\View\Helper\TimeHelper as CakeTimeHelper;
99
use Cake\View\View;
1010

@@ -45,7 +45,7 @@ class TimeHelper extends CakeTimeHelper {
4545
*
4646
* @param \Cake\View\View $View The View this helper is being attached to.
4747
* @param array $config Configuration settings for the helper
48-
* @throws \Cake\Core\Exception\Exception When the engine class could not be found.
48+
* @throws \Cake\Core\Exception\CakeException When the engine class could not be found.
4949
*/
5050
public function __construct(View $View, array $config = []) {
5151
$defaults = [
@@ -58,7 +58,7 @@ public function __construct(View $View, array $config = []) {
5858
$config = $this->_config + $defaults;
5959
$engineClass = App::className($config['engine'], 'Utility');
6060
if (!$engineClass) {
61-
throw new Exception(sprintf('Class for %s could not be found', $config['engine']));
61+
throw new CakeException(sprintf('Class for %s could not be found', $config['engine']));
6262
}
6363

6464
$this->_engine = new $engineClass($config);

0 commit comments

Comments
 (0)