Skip to content
This repository was archived by the owner on Dec 6, 2019. It is now read-only.

Commit 469159d

Browse files
committed
Adiciona exception anterior para manter stack trace
1 parent a0b033f commit 469159d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Client/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function post($url, SimpleXMLElement $body)
4242

4343
return new SimpleXMLElement($response->getBody());
4444
} catch (RequestException $e) {
45-
throw PagSeguroException::create($e->getResponse());
45+
throw PagSeguroException::create($e->getResponse(), $e);
4646
}
4747
}
4848

@@ -58,7 +58,7 @@ public function get($url)
5858

5959
return new SimpleXMLElement($response->getBody());
6060
} catch (RequestException $e) {
61-
throw PagSeguroException::create($e->getResponse());
61+
throw PagSeguroException::create($e->getResponse(), $e);
6262
}
6363
}
6464
}

0 commit comments

Comments
 (0)