__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
declare(strict_types=1);
namespace Sabre\Xml;
use LibXMLError;
use Throwable;
/**
* This exception is thrown when the Reader runs into a parsing error.
*
* This exception effectively wraps 1 or more LibXMLError objects.
*
* @copyright Copyright (C) 2009-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/)
* @license http://sabre.io/license/ Modified BSD License
*/
class LibXMLException extends ParseException
{
/**
* The error list.
*
* @var \LibXMLError[]
*/
protected $errors;
/**
* Creates the exception.
*
* You should pass a list of LibXMLError objects in its constructor.
*
* @param LibXMLError[] $errors
* @param Throwable $previousException
*/
public function __construct(array $errors, int $code = 0, ?Throwable $previousException = null)
{
$this->errors = $errors;
parent::__construct($errors[0]->message.' on line '.$errors[0]->line.', column '.$errors[0]->column, $code, $previousException);
}
/**
* Returns the LibXML errors.
*/
public function getErrors(): array
{
return $this->errors;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Deserializer | Folder | 0775 |
|
|
| Element | Folder | 0775 |
|
|
| Serializer | Folder | 0775 |
|
|
| ContextStackTrait.php | File | 3.22 KB | 0664 |
|
| Element.php | File | 549 B | 0664 |
|
| LibXMLException.php | File | 1.16 KB | 0664 |
|
| ParseException.php | File | 374 B | 0664 |
|
| Reader.php | File | 9.46 KB | 0664 |
|
| Service.php | File | 9.43 KB | 0664 |
|
| Version.php | File | 369 B | 0664 |
|
| Writer.php | File | 7.75 KB | 0664 |
|
| XmlDeserializable.php | File | 1.17 KB | 0664 |
|
| XmlSerializable.php | File | 1003 B | 0664 |
|