// Import framework stuff
use CoreFramework\Generic\FrameworkException;
+// Import SPL stuff
+use \SplFileInfo;
+
/**
* An exception thrown when a file could not be written.
*
/**
* 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 cannot be written. Please check file and/or directory permissions.', $fqfn);
+ $message = sprintf('File %s cannot be written. Please check file and/or directory permissions.', $infoInstance->getPathname());
// Call parent constructor
parent::__construct($message, $code);