Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

Fix exception namespace and PHPDoc #39

Merged
merged 1 commit into from
Jul 29, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Klarna/Rest/Transport/GuzzleConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public function createRequest($url, $method = 'GET', array $headers = [], $body
* @param string[] $options Request options
*
* @throws RequestException When an error is encountered
* @throws \LogicException When the adapter does not populate a response
* @throws \RuntimeException When the adapter does not populate a response
*
* @return ResponseInterface
*/
Expand All @@ -232,7 +232,7 @@ public function send(RequestInterface $request, array $options = [])
return $response;
} catch (RequestException $e) {
throw new \RuntimeException($e->getMessage(), $e->getCode(), $e);
} catch (Throwable $e) {
} catch (\Throwable $e) {
throw new \RuntimeException($e->getMessage(), $e->getCode(), $e);
}
}
Expand Down