class InvalidExtensionValidatorException in Mini site 8
Class InvalidExtensionValidatorException.
Thrown when invalid extension encountered by validator.
@package Drupal\minisite\Exception
Hierarchy
- class \Drupal\minisite\Exception\InvalidExtensionValidatorException extends \Drupal\minisite\Exception\Exception
Expanded class hierarchy of InvalidExtensionValidatorException
4 files declare their use of InvalidExtensionValidatorException
- ArchiveValidator.php in src/
ArchiveValidator.php - Asset.php in src/
Asset.php - FileValidator.php in src/
FileValidator.php - FileValidatorTest.php in tests/
src/ Unit/ FileValidatorTest.php
File
- src/
Exception/ InvalidExtensionValidatorException.php, line 12
Namespace
Drupal\minisite\ExceptionView source
class InvalidExtensionValidatorException extends \Exception {
/**
* InvalidExtensionValidatorException constructor.
*
* @param string $filename
* The file name that was validated.
*/
public function __construct($filename) {
parent::__construct(sprintf('File %s has invalid extension.', $filename));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
InvalidExtensionValidatorException:: |
public | function | InvalidExtensionValidatorException constructor. |