Files
bunny-cli/app/Bunny/Filesystem/Exceptions/FileNotFoundException.php
2021-07-22 16:42:01 +02:00

14 lines
295 B
PHP

<?php
namespace App\Bunny\Filesystem\Exceptions;
use App\Bunny\Filesystem\File;
class FileNotFoundException extends FilesystemException
{
public static function fromFile(File $file): self
{
return new self(sprintf('The file %s was not found.', $file->getFilename()));
}
}