parent
154a9f5acf
commit
57fce758f5
3 changed files with 3 additions and 7 deletions
@ -1,9 +1,7 @@ |
||||
<?php |
||||
class Minz_ActionException extends Minz_Exception { |
||||
public function __construct ($controller_name, $action_name, $code = self::ERROR) { |
||||
$message = '`' . $action_name . '` cannot be invoked on `' |
||||
. $controller_name . '`'; |
||||
|
||||
$message = 'Invalid action name for controller ' . $controller_name; |
||||
parent::__construct ($message, $code); |
||||
} |
||||
} |
||||
|
@ -1,9 +1,7 @@ |
||||
<?php |
||||
class Minz_ControllerNotExistException extends Minz_Exception { |
||||
public function __construct ($controller_name, $code = self::ERROR) { |
||||
$message = 'Controller `' . $controller_name |
||||
. '` doesn\'t exist'; |
||||
|
||||
$message = 'Controller not found!'; |
||||
parent::__construct ($message, $code); |
||||
} |
||||
} |
||||
|
Loading…
Reference in new issue