mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-02-06 19:41:13 -05:00
* PHPStan level 6 for all PDO and Exception classes Contributes to https://github.com/FreshRSS/FreshRSS/issues/4112 * Fix type * Now also our remaining own librairies * Motivation for a few more files * A few more DAO classes * Last interface
11 lines
433 B
PHP
11 lines
433 B
PHP
<?php
|
|
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);
|
|
}
|
|
}
|