]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/exceptions/io/class_FileNotFoundException.php
CAPTCHA support basicly finished (weak CAPTCHA!)
[shipsimu.git] / inc / classes / exceptions / io / class_FileNotFoundException.php
index a8ff4499719e519faee01ddc4b45501b0ee38daf..62665447e5553b1119dd82a90e4fe25930302302 100644 (file)
@@ -25,13 +25,18 @@ class FileNotFoundException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $fqfn           Full-qualified file name of (maybe) missing file
-        * @param               $code           Code number for the exception
+        * @param       $fqfn   Full-qualified file name of (maybe) missing file
+        * @param       $code   Code number for the exception
         * @return      void
         */
        public function __construct ($fqfn, $code) {
                // Add a message around the missing class
-               $message = sprintf("The requested file <span id=\"exception_reason\">%s</span> was not found.", $fqfn);
+               $message = sprintf("The requested file <span id=\"exception_reason\">%s</span> was not found.",
+                       $fqfn
+               );
+
+               // Set extra data
+               $this->setExtraData(basename($fqfn));
 
                // Call parent constructor
                parent::__construct($message, $code);