From 857d4490eb621fe638451515d6f2fe10fa93b36f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 21 Sep 2020 13:46:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Exception/AuthException.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/System/Exception/AuthException.php b/System/Exception/AuthException.php index adefeaf7..f855ee1b 100644 --- a/System/Exception/AuthException.php +++ b/System/Exception/AuthException.php @@ -4,7 +4,14 @@ namespace Snowflake\Exception; +use Throwable; + class AuthException extends \Exception { + public function __construct($message = "", $code = 0, Throwable $previous = null) + { + parent::__construct($message, 401, $previous); + } + }