PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 1.2.20
Booking for Appointments and Events Calendar – Amelia v1.2.20
2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / vendor / sabre / xml / lib / LibXMLException.php
ameliabooking / vendor / sabre / xml / lib Last commit date
Deserializer 1 year ago Element 1 year ago Serializer 1 year ago ContextStackTrait.php 1 year ago Element.php 1 year ago LibXMLException.php 1 year ago ParseException.php 1 year ago Reader.php 1 year ago Service.php 1 year ago Version.php 1 year ago Writer.php 1 year ago XmlDeserializable.php 1 year ago XmlSerializable.php 1 year ago
LibXMLException.php
50 lines
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Sabre\Xml;
6
7 use LibXMLError;
8
9 /**
10 * This exception is thrown when the Reader runs into a parsing error.
11 *
12 * This exception effectively wraps 1 or more LibXMLError objects.
13 *
14 * @copyright Copyright (C) 2009-2015 fruux GmbH (https://fruux.com/).
15 * @author Evert Pot (http://evertpot.com/)
16 * @license http://sabre.io/license/ Modified BSD License
17 */
18 class LibXMLException extends ParseException
19 {
20 /**
21 * The error list.
22 *
23 * @var \LibXMLError[]
24 */
25 protected array $errors;
26
27 /**
28 * Creates the exception.
29 *
30 * You should pass a list of LibXMLError objects in its constructor.
31 *
32 * @param \LibXMLError[] $errors
33 */
34 public function __construct(array $errors, int $code = 0, ?\Throwable $previousException = null)
35 {
36 $this->errors = $errors;
37 parent::__construct($errors[0]->message.' on line '.$errors[0]->line.', column '.$errors[0]->column, $code, $previousException);
38 }
39
40 /**
41 * Returns the LibXML errors.
42 *
43 * @return \LibXMLError[]
44 */
45 public function getErrors(): array
46 {
47 return $this->errors;
48 }
49 }
50