Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ManifestDocumentLoadingException.php

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\Manifest
View 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.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal