You are here

class InvalidExtensionValidatorException in Mini site 8

Class InvalidExtensionValidatorException.

Thrown when invalid extension encountered by validator.

@package Drupal\minisite\Exception

Hierarchy

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\Exception
View 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

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