You are here

class InvalidPathLengthValidatorException in Mini site 8

Class InvalidPathLengthValidatorException.

Thrown when invalid path length encountered by validator.

@package Drupal\minisite\Exception

Hierarchy

Expanded class hierarchy of InvalidPathLengthValidatorException

2 files declare their use of InvalidPathLengthValidatorException
ArchiveValidator.php in src/ArchiveValidator.php
FileValidator.php in src/FileValidator.php

File

src/Exception/InvalidPathLengthValidatorException.php, line 12

Namespace

Drupal\minisite\Exception
View source
class InvalidPathLengthValidatorException extends \Exception {

  /**
   * InvalidPathLengthValidatorException constructor.
   *
   * @param string $filename
   *   The file name that was validated.
   * @param int $length
   *   The allowed characters length.
   */
  public function __construct($filename, $length) {
    parent::__construct(sprintf('File "%s" path within the archive should be under %s characters in length.', $filename, $length));
  }

}

Members

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