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