Renamed Registry -> GenericRegistry to make it clear that this registry does
[core.git] / framework / main / exceptions / file_directory / class_FileIoException.php
index a445dd7842c56c09127cdf7d643ec8b47c5bf451..e1649d038dc894d3340e456789b32a9a452dcc41 100644 (file)
@@ -1,9 +1,12 @@
 <?php
 // Own namespace
-namespace CoreFramework\Filesystem;
+namespace Org\Mxchange\CoreFramework\Filesystem;
 
 // Import framework stuff
-use CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
+
+// Import SPL stuff
+use \SplFileInfo;
 
 /**
  * An exception thrown when a file pointer is not opened or when the file
@@ -32,13 +35,13 @@ class FileIoException 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('A problem has been detected reading or writing to/from %s.', $fqfn);
+               $message = sprintf('A problem has been detected reading or writing to/from %s.', $infoInstance->getPathname());
 
                // Call parent constructor
                parent::__construct($message, $code);