]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/exceptions/controller/class_InvalidControllerException.php
Image controller/resolver and fixes:
[shipsimu.git] / inc / classes / exceptions / controller / class_InvalidControllerException.php
index 4aa54c8e07bdf6266e3695a17ded61e547a36ee0..2546e729c347e31e9e4e11ecbbbca8cc8b768117 100644 (file)
@@ -31,12 +31,16 @@ class InvalidControllerException extends FrameworkException {
         */
        public function __construct(array $msgArray, $code) {
                // Prepare the message
-               $message = sprintf("[%s:%d] Cannot resolve controller <span id=\"exception_reason\">%s</span>.",
+               $message = sprintf("[%s:%d] Cannot resolve controller <span id=\"exception_reason\">%s (class name: %s)</span>.",
                        $msgArray[0]->__toString(),
                        $this->getLine(),
-                       $msgArray[1]
+                       $msgArray[1],
+                       $msgArray[0]->getClassName()
                );
 
+               // Set extra data
+               $this->setExtraData($msgArray[0]->getClassName());
+
                // Call parent contructor with message
                parent::__construct($message, $code);
        }