/
jagepard
/
Rudra-Exception
Обзор
Документация
Войти
/
jagepard
/
Rudra-Exception
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/helpers.php
19 строк
577 B
Jagepard
update
18 июн 2026, 10:06
18 июн 2026, 10:06
b5feb34
Код
Авторство
О чём код?
<?php declare(strict_types=1); /** * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. * * @author Korotkov Danila (Jagepard) <jagepard@yandex.ru> * @license https://mozilla.org/MPL/2.0/ MPL-2.0 */ use Rudra\Exceptions\RouterException; if (!function_exists('abort')) { function abort(int $code, string $message = ''): void { throw new RouterException($message ?: "HTTP Error {$code}", $code); } }