ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
LibXMLException.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Sabre\Xml;
4 
5 use
7 
18 
24  protected $errors;
25 
35  function __construct(array $errors, $code = null, Exception $previousException = null) {
36 
37  $this->errors = $errors;
38  parent::__construct($errors[0]->message . ' on line ' . $errors[0]->line . ', column ' . $errors[0]->column, $code, $previousException);
39 
40  }
41 
47  function getErrors() {
48 
49  return $this->errors;
50 
51  }
52 
53 }
This is a base exception for any exception related to parsing xml files.
__construct(array $errors, $code=null, Exception $previousException=null)
Creates the exception.
$code
Definition: example_050.php:99
getErrors()
Returns the LibXML errors.
This exception is thrown when the Readers runs into a parsing error.