File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
use Cake \Core \App ;
6
6
use Cake \Core \Configure ;
7
- use Cake \Core \Exception \Exception ;
7
+ use Cake \Core \Exception \CakeException ;
8
8
use Cake \View \Helper \TimeHelper as CakeTimeHelper ;
9
9
use Cake \View \View ;
10
10
@@ -45,7 +45,7 @@ class TimeHelper extends CakeTimeHelper {
45
45
*
46
46
* @param \Cake\View\View $View The View this helper is being attached to.
47
47
* @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.
49
49
*/
50
50
public function __construct (View $ View , array $ config = []) {
51
51
$ defaults = [
@@ -58,7 +58,7 @@ public function __construct(View $View, array $config = []) {
58
58
$ config = $ this ->_config + $ defaults ;
59
59
$ engineClass = App::className ($ config ['engine ' ], 'Utility ' );
60
60
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 ' ]));
62
62
}
63
63
64
64
$ this ->_engine = new $ engineClass ($ config );
You can’t perform that action at this time.
0 commit comments