<?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
/**
* 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);