class InvalidContentArchiveException in Mini site 8
Class InvalidContentArchiveException.
Thrown when archive content is invalid.
@package Drupal\minisite\Exception
Hierarchy
- class \Drupal\minisite\Exception\ArchiveException extends \Drupal\minisite\Exception\Exception
- class \Drupal\minisite\Exception\InvalidContentArchiveException
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\ExceptionView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
InvalidContentArchiveException:: |
public | function | InvalidContentArchiveException constructor. |