aboutsummaryrefslogtreecommitdiffstats
path: root/public/system/storage/vendor/guzzlehttp/guzzle/src/Exception/XmlParseException.php
blob: a4a1a0af4721127535c146f3d8d6abd37e8a79da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php

namespace GuzzleHttp\Exception;

use GuzzleHttp\Message\ResponseInterface;

/**
 * Exception when a client is unable to parse the response body as XML
 */
class XmlParseException extends ParseException
{
    /** @var \LibXMLError */
    protected $error;

    public function __construct(
        $message = '',
        ResponseInterface $response = null,
        \Exception $previous = null,
        \LibXMLError $error = null
    ) {
        parent::__construct($message, $response, $previous);
        $this->error = $error;
    }

    /**
     * Get the associated error
     *
     * @return \LibXMLError|null
     */
    public function getError()
    {
        return $this->error;
    }
}