]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/exceptions/main/class_ConfigEntryNotFoundException.php
Image controller/resolver and fixes:
[shipsimu.git] / inc / classes / exceptions / main / class_ConfigEntryNotFoundException.php
index 651e8e030007b89c7f35a8f1572bd2e4f45e2850..d7d2c958644b36e9c6adae3fcee2241fde803a76 100644 (file)
@@ -25,21 +25,21 @@ class ConfigEntryNotFoundException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $classArray             Array with class
+        * @param               $classArray             Array with exception data
         * @param               $code                   Code number for the exception
         * @return      void
         */
        public function __construct (array $classArray, $code) {
-               // Cast the array
-               $classArray = (array) $classArray;
-
                // Add a message around the missing class
-               $message = sprintf("[%s:%d] Configuration entry <u>%s</u> not found.",
+               $message = sprintf("[%s:%d] Configuration entry <span id=\"exception_reason\">%s</span> not found.",
                        $classArray[0],
                        $this->getLine(),
                        $classArray[1]
                );
 
+               // Set extra data
+               $this->setExtraData($classArray[1]);
+
                // Call parent constructor
                parent::__construct($message, $code);
        }