Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EmptyFileException.php

class EmptyFileException

@internal

Hierarchy

  • class \SlevomatCodingStandard\Helpers\EmptyFileException extends \Exception

Expanded class hierarchy of EmptyFileException

File

vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/EmptyFileException.php, line 12

Namespace

SlevomatCodingStandard\Helpers
View source
class EmptyFileException extends Exception {
    
    /** @var string */
    private $filename;
    public function __construct(string $filename, ?Throwable $previous = null) {
        parent::__construct(sprintf('File %s is empty', $filename), 0, $previous);
        $this->filename = $filename;
    }
    public function getFilename() : string {
        return $this->filename;
    }

}

Members

Title Sort descending Modifiers Object type Summary
EmptyFileException::$filename private property @var string
EmptyFileException::getFilename public function
EmptyFileException::__construct public function
RSS feed
Powered by Drupal