* @copyright Meritoo */ class NotExistingFileException extends \Exception { /** * Creates exception * * @param string $notExistingFilePath Path of not existing (or not readable) file * @return NotExistingFileException */ public static function create($notExistingFilePath) { $template = 'File with path \'%s\' does not exist (or is not readable). Did you provide path of proper file?'; $message = sprintf($template, $notExistingFilePath); return new static($message); } }