We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f4117b commit fb16689Copy full SHA for fb16689
src/Response.php
@@ -33,12 +33,10 @@ class Response implements ResponseInterface {
33
*/
34
public function __construct($text, &$client = null)
35
{
36
- $this->rawResponse = $text;
37
- try {
38
- $doc = new QuiteSimpleXMLElement($text);
39
- } catch (\Exception $e) {
40
- throw new \Exception('Invalid XML received');
41
- }
+ $this->rawResponse = $text;
+
+ // Throws Danmichaelo\QuiteSimpleXMLElement\InvalidXMLException on invalid xml
+ $this->response = new QuiteSimpleXMLElement($text);
42
43
$this->client = $client;
44
0 commit comments