Fix fromException call constructor parameters fail.
This commit is contained in:
parent
58848bfecd
commit
f0bdbc9bbd
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user