You are here

class InvalidFormatArchiveException in Mini site 8

Class InvalidFormatArchiveException.

Thrown when archive format is invalid.

@package Drupal\minisite\Exception

Hierarchy

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

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