You are here

public function InvalidPathLengthValidatorException::__construct in Mini site 8

InvalidPathLengthValidatorException constructor.

Parameters

string $filename: The file name that was validated.

int $length: The allowed characters length.

File

src/Exception/InvalidPathLengthValidatorException.php, line 22

Class

InvalidPathLengthValidatorException
Class InvalidPathLengthValidatorException.

Namespace

Drupal\minisite\Exception

Code

public function __construct($filename, $length) {
  parent::__construct(sprintf('File "%s" path within the archive should be under %s characters in length.', $filename, $length));
}