FreshRSS/lib/Minz/ActionException.php

13 lines
459 B
PHP

<?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);
}
}