From fb02d889bacbc4081ae33f28f566d01aae3b9aa6 Mon Sep 17 00:00:00 2001 From: Josias Montag Date: Thu, 31 May 2018 15:20:27 +0200 Subject: [PATCH] Fix exception messages --- src/Exceptions/ApiException.php | 2 ++ 1 file changed, 2 insertions(+) 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(); } }