]> git.mxchange.org Git - core.git/blobdiff - framework/main/exceptions/file_directory/class_FileNotFoundException.php
Rewritten:
[core.git] / framework / main / exceptions / file_directory / class_FileNotFoundException.php
index e86ee272162229203804e627e7721708c2ec70b5..76718a04618568d8f2e5a98338c07618b95e2b98 100644 (file)
@@ -5,6 +5,9 @@ namespace CoreFramework\Filesystem;
 // Import framework stuff
 use CoreFramework\Generic\FrameworkException;
 
 // 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).
  *
 /**
  * An exception thrown when a file was not found (but could be found).
  *
@@ -31,13 +34,13 @@ class FileNotFoundException extends FrameworkException {
        /**
         * The constructor
         *
        /**
         * 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
         */
         * @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
                // 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);
 
                // Call parent constructor
                parent::__construct($message, $code);