Files
kiri-core/http-server/Abstracts/PageNotFoundException.php
T

24 lines
289 B
PHP
Raw Normal View History

2021-08-04 16:02:13 +08:00
<?php
namespace Server\Abstracts;
2021-09-21 00:43:45 +08:00
use JetBrains\PhpStorm\Pure;
2021-08-04 16:02:13 +08:00
/**
*
*/
class PageNotFoundException extends \Exception
{
/**
*
*/
2021-09-21 00:43:45 +08:00
#[Pure] public function __construct(int $code)
2021-08-04 16:02:13 +08:00
{
parent::__construct('<h2>HTTP 404 Not Found</h2><hr><i>Powered by Swoole</i>', $code);
}
}