diff --git a/src/Exceptions/ApiException.php b/src/Exceptions/ApiException.php index c68ab9a..9c882e9 100644 --- a/src/Exceptions/ApiException.php +++ b/src/Exceptions/ApiException.php @@ -85,6 +85,8 @@ public function getRequestException() public function __construct(RequestException $e) { $this->exception = $e; + $this->code = $e->getCode(); + $this->message = $e->getMessage(); parent::__construct(); } }