Files
monica/app/Exceptions/FileNotFoundException.php
T
2023-01-30 12:28:42 +01:00

31 lines
581 B
PHP

<?php
namespace App\Exceptions;
use Illuminate\Contracts\Filesystem\FileNotFoundException as FileNotFoundExceptionBase;
class FileNotFoundException extends FileNotFoundExceptionBase
{
/**
* @var string
*/
public $fileName;
/**
* Create a new instance.
*
* @param string $fileName
* @return void
*/
public function __construct($fileName)
{
$this->fileName = $fileName;
parent::__construct();
}
public function __toString(): string
{
return 'File not found: '.$this->fileName;
}
}