Fix fromException call constructor parameters fail.

This commit is contained in:
Amast 2019-11-12 17:28:11 +08:00
parent 58848bfecd
commit f0bdbc9bbd

View File

@ -21,7 +21,7 @@ class ApiException extends Exception
*/ */
public function __construct(string $message, Throwable $previous = null) public function __construct(string $message, Throwable $previous = null)
{ {
parent::__construct($message, $previous); parent::__construct($message, $this->response_code, $previous);
} }
public static function fromException(Exception $e) public static function fromException(Exception $e)