blob: 158a03f883df7db3486efb5703e1009a238e94cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
<?php
declare(strict_types=1);
class Minz_ActionException extends Minz_Exception {
public function __construct(string $controller_name, string $action_name, int $code = self::ERROR) {
// Just for security, as we are not supposed to get non-alphanumeric characters.
$action_name = rawurlencode($action_name);
$message = "Invalid action name “{$action_name}” for controller “{$controller_name}”.";
parent::__construct($message, $code);
}
}
|