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

Breadcrumb

  1. Drupal Core 11.1.x

EmptyFileException.php

Namespace

SlevomatCodingStandard\Helpers

File

vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/EmptyFileException.php

View source
<?php

declare (strict_types=1);
namespace SlevomatCodingStandard\Helpers;

use Exception;
use Throwable;
use function sprintf;

/**
 * @internal
 */
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;
    }

}

Classes

Title Deprecated Summary
EmptyFileException @internal

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal