This commit is contained in:
2021-08-04 16:02:13 +08:00
parent 4fe0728551
commit 7f14a5ed4d
2 changed files with 24 additions and 7 deletions
@@ -0,0 +1,21 @@
<?php
namespace Server\Abstracts;
/**
*
*/
class PageNotFoundException extends \Exception
{
/**
*
*/
public function __construct(int $code)
{
parent::__construct('<h2>HTTP 404 Not Found</h2><hr><i>Powered by Swoole</i>', $code);
}
}