* @copyright Meritoo.pl */ class EmptyFileException extends \Exception { const className = 'Meritoo\Common\Exception\File\EmptyFileException'; /** * Class constructor * * @param string $emptyFilePath Path of the empty file */ public function __construct($emptyFilePath) { $template = 'File with path \'%s\' is empty (has no content). Did you provide path of proper file?'; $message = sprintf($template, $emptyFilePath); parent::__construct($message); } }