class InvalidFormatArchiveException in Mini site 8
Class InvalidFormatArchiveException.
Thrown when archive format is invalid.
@package Drupal\minisite\Exception
Hierarchy
- class \Drupal\minisite\Exception\ArchiveException extends \Drupal\minisite\Exception\Exception
- class \Drupal\minisite\Exception\InvalidFormatArchiveException
Expanded class hierarchy of InvalidFormatArchiveException
1 file declares its use of InvalidFormatArchiveException
- Minisite.php in src/
Minisite.php
File
- src/
Exception/ InvalidFormatArchiveException.php, line 12
Namespace
Drupal\minisite\ExceptionView source
class InvalidFormatArchiveException extends ArchiveException {
/**
* InvalidFormatArchiveException constructor.
*
* @param string $filename
* The file name that was validated.
*/
public function __construct($filename) {
parent::__construct(sprintf('File %s is not an archive file.', $filename));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
InvalidFormatArchiveException:: |
public | function | InvalidFormatArchiveException constructor. |