class ManifestDocumentLoadingException
Hierarchy
- interface \PharIo\Manifest\Exception extends \Throwable
- class \PharIo\Manifest\ManifestDocumentLoadingException extends \PharIo\Manifest\Exception implements \PharIo\Manifest\Exception
Expanded class hierarchy of ManifestDocumentLoadingException
File
-
vendor/
phar-io/ manifest/ src/ exceptions/ ManifestDocumentLoadingException.php, line 16
Namespace
PharIo\ManifestView source
class ManifestDocumentLoadingException extends \Exception implements Exception {
/** @var LibXMLError[] */
private $libxmlErrors;
/**
* ManifestDocumentLoadingException constructor.
*
* @param LibXMLError[] $libxmlErrors
*/
public function __construct(array $libxmlErrors) {
$this->libxmlErrors = $libxmlErrors;
$first = $this->libxmlErrors[0];
parent::__construct(sprintf('%s (Line: %d / Column: %d / File: %s)', $first->message, $first->line, $first->column, $first->file), $first->code);
}
/**
* @return LibXMLError[]
*/
public function getLibxmlErrors() : array {
return $this->libxmlErrors;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
ManifestDocumentLoadingException::$libxmlErrors | private | property | @var LibXMLError[] |
ManifestDocumentLoadingException::getLibxmlErrors | public | function | |
ManifestDocumentLoadingException::__construct | public | function | ManifestDocumentLoadingException constructor. |