]> git.mxchange.org Git - core.git/blobdiff - inc/classes/exceptions/controller/class_DefaultControllerException.php
More debug data added
[core.git] / inc / classes / exceptions / controller / class_DefaultControllerException.php
index e0c891c7bb765ce9e8cf0bd0572ae9512d9b5fd3..22ce2e6944233bba185a7ab613a8213dd48efd55 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, this is free software
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -31,13 +31,14 @@ class DefaultControllerException extends FrameworkException {
         */
        public function __construct(ControllerResolver $resolverInstance, $code) {
                // Prepare the message
-               $message = sprintf("[%s:%d] Cannot resolv default controller. Maybe missing?",
+               $message = sprintf("[%s:%d] Cannot resolve default controller <span class=\"exception_reason\">(%s)</span>. Maybe missing?",
                        $resolverInstance->__toString(),
+                       $resolverInstance->getClassName(),
                        $this->getLine()
                );
 
                // Set extra data
-               $this->setExtraData($resolverInstance->getClassName().":".$this->getLine());
+               $this->setExtraData($resolverInstance->getClassName().':'.$this->getLine());
 
                // Call parent contructor with message
                parent::__construct($message, $code);