// Import framework stuff
use CoreFramework\Generic\FrameworkException;
+// Import SPL stuff
+use \SplFileInfo;
+
/**
* An exception thrown when a file pointer is not opened or when the file
* cannot be reached.
/**
* 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);