first commit
This commit is contained in:
@@ -1,5 +1,20 @@
|
||||
<?php
|
||||
namespace catcher\exceptions;
|
||||
|
||||
abstract class CatchException extends \Exception
|
||||
{}
|
||||
use Exception;
|
||||
use think\exception\HttpException;
|
||||
|
||||
abstract class CatchException extends HttpException
|
||||
{
|
||||
protected const HTTP_SUCCESS = 200;
|
||||
|
||||
public function __construct(string $message = '', int $code = 0, Exception $previous = null, array $headers = [], $statusCode = 0)
|
||||
{
|
||||
parent::__construct($statusCode, $message, $previous, $headers, $code);
|
||||
}
|
||||
|
||||
public function getStatusCode()
|
||||
{
|
||||
return self::HTTP_SUCCESS;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user