X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=framework%2Fmain%2Fexceptions%2Ffile_directory%2Fclass_FileReadProtectedException.php;h=47272db30223e5128f3b70ac3c5fc1ebfdcd90b9;hb=498e6b065ce47804bff4e1073592a2cc8e28f8ef;hp=7be7ba632f9d35fbf8c27b960f2cb5965f1e2dbb;hpb=2c22024e1c9ac0aef5bb8c347326192af8826ae5;p=core.git diff --git a/framework/main/exceptions/file_directory/class_FileReadProtectedException.php b/framework/main/exceptions/file_directory/class_FileReadProtectedException.php index 7be7ba63..47272db3 100644 --- a/framework/main/exceptions/file_directory/class_FileReadProtectedException.php +++ b/framework/main/exceptions/file_directory/class_FileReadProtectedException.php @@ -1,16 +1,19 @@ * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2020 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.shipsimu.org * @@ -31,13 +34,13 @@ class FileReadProtectedException extends FrameworkException { /** * The constructor * - * @param $fileName File which cannot be read from + * @param $infoInstance An instance of a SplFileInfo class * @param $code Code number for the exception * @return void */ - public function __construct ($fileName, $code) { + public function __construct (SplFileInfo $infoInstance, int $code) { // Add a message around the missing class - $message = sprintf('File %s is read-protected. Please set read access rights (CHMOD).', $fileName); + $message = sprintf('File %s is read-protected. Please set read access rights (CHMOD).', $infoInstance->getPathname()); // Call parent constructor parent::__construct($message, $code);