You are here

class InvalidContentArchiveException in Mini site 8

Class InvalidContentArchiveException.

Thrown when archive content is invalid.

@package Drupal\minisite\Exception

Hierarchy

Expanded class hierarchy of InvalidContentArchiveException

3 files declare their use of InvalidContentArchiveException
ArchiveValidator.php in src/ArchiveValidator.php
ArchiveValidatorTest.php in tests/src/Unit/ArchiveValidatorTest.php
Minisite.php in src/Minisite.php

File

src/Exception/InvalidContentArchiveException.php, line 12

Namespace

Drupal\minisite\Exception
View source
class InvalidContentArchiveException extends ArchiveException {

  /**
   * InvalidContentArchiveException constructor.
   *
   * @param array $errors
   *   Array of error messages encountered during archive content validation.
   */
  public function __construct(array $errors) {
    parent::__construct(sprintf('Archive has invalid content: %s', implode(PHP_EOL, $errors)));
  }

}

Members

Namesort descending Modifiers Type Description Overrides
InvalidContentArchiveException::__construct public function InvalidContentArchiveException constructor.