[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/guzzlehttp/guzzle/src/Exception/ -> XmlParseException.php (source)

   1  <?php
   2  
   3  namespace GuzzleHttp\Exception;
   4  
   5  use GuzzleHttp\Message\ResponseInterface;
   6  
   7  /**
   8   * Exception when a client is unable to parse the response body as XML
   9   */
  10  class XmlParseException extends ParseException
  11  {
  12      /** @var \LibXMLError */
  13      protected $error;
  14  
  15      public function __construct(
  16          $message = '',
  17          ResponseInterface $response = null,
  18          \Exception $previous = null,
  19          \LibXMLError $error = null
  20      ) {
  21          parent::__construct($message, $response, $previous);
  22          $this->error = $error;
  23      }
  24  
  25      /**
  26       * Get the associated error
  27       *
  28       * @return \LibXMLError|null
  29       */
  30      public function getError()
  31      {
  32          return $this->error;
  33      }
  34  }


Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1