]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/exceptions/controller/class_DefaultControllerException.php
More conventions than code added:
[shipsimu.git] / inc / classes / exceptions / controller / class_DefaultControllerException.php
index aead2d439d93c4a15ccde400782828ce7579e7e8..e0c891c7bb765ce9e8cf0bd0572ae9512d9b5fd3 100644 (file)
@@ -2,11 +2,11 @@
 /**
  * This exception is thrown when the default controller is missing
  *
- * @author             Roland Haeder <webmaster@mxchange.org>
+ * @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, this is free software
  * @license            GNU GPL 3.0 or any newer version
- * @link               http://www.ship-simu.org
+ * @link               http://www.ship-simu.org
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -25,8 +25,8 @@ class DefaultControllerException extends FrameworkException {
        /**
         * The super constructor for all exceptions
         *
-        * @param               $resolverInstance       An instance of a resolver class
-        * @param               $code                           An optional code for better debugging
+        * @param       $resolverInstance       An instance of a resolver class
+        * @param       $code                           An optional code for better debugging
         * @return      void
         */
        public function __construct(ControllerResolver $resolverInstance, $code) {
@@ -36,6 +36,9 @@ class DefaultControllerException extends FrameworkException {
                        $this->getLine()
                );
 
+               // Set extra data
+               $this->setExtraData($resolverInstance->getClassName().":".$this->getLine());
+
                // Call parent contructor with message
                parent::__construct($message, $code);
        }