X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=framework%2Fmain%2Fexceptions%2Ffile_directory%2Fclass_FileNotFoundException.php;h=76718a04618568d8f2e5a98338c07618b95e2b98;hp=e86ee272162229203804e627e7721708c2ec70b5;hb=b9bfbe86c031c9d83c3670602906df191a33ba2a;hpb=5da8f717122568335b8a8ab230fa0de17e983fab diff --git a/framework/main/exceptions/file_directory/class_FileNotFoundException.php b/framework/main/exceptions/file_directory/class_FileNotFoundException.php index e86ee272..76718a04 100644 --- a/framework/main/exceptions/file_directory/class_FileNotFoundException.php +++ b/framework/main/exceptions/file_directory/class_FileNotFoundException.php @@ -5,6 +5,9 @@ namespace CoreFramework\Filesystem; // Import framework stuff use CoreFramework\Generic\FrameworkException; +// Import SPL stuff +use \SplFileInfo; + /** * An exception thrown when a file was not found (but could be found). * @@ -31,13 +34,13 @@ class FileNotFoundException extends FrameworkException { /** * The constructor * - * @param $fqfn Full-qualified file name of (maybe) missing file + * @param $infoInstance An instance of a SplFileInfo class * @param $code Code number for the exception * @return void */ - public function __construct ($fqfn, $code) { + public function __construct (SplFileInfo $infoInstance, $code) { // Add a message around the missing class - $message = sprintf('File %s not found.', $fqfn); + $message = sprintf('File "%s" not found.', $infoInstance->getPathname()); // Call parent constructor parent::__construct($message, $code);