ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
LibXMLException.php
Go to the documentation of this file.
1<?php
2
3namespace Sabre\Xml;
4
5use
6 LibXMLError;
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}
An exception for terminatinating execution or to throw for unit testing.
This exception is thrown when the Readers runs into a parsing error.
getErrors()
Returns the LibXML errors.
__construct(array $errors, $code=null, Exception $previousException=null)
Creates the exception.
This is a base exception for any exception related to parsing xml files.
$code
Definition: example_050.php:99