X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=blobdiff_plain;f=inc%2Fclasses%2Fexceptions%2Fcontroller%2Fclass_DefaultControllerException.php;h=e0c891c7bb765ce9e8cf0bd0572ae9512d9b5fd3;hp=aead2d439d93c4a15ccde400782828ce7579e7e8;hb=d527a312ec4b2983fc0ecda2179ce335c1a5a1f9;hpb=0fd5fb832c877ace8a50db9eaf3caa207372f537 diff --git a/inc/classes/exceptions/controller/class_DefaultControllerException.php b/inc/classes/exceptions/controller/class_DefaultControllerException.php index aead2d4..e0c891c 100644 --- a/inc/classes/exceptions/controller/class_DefaultControllerException.php +++ b/inc/classes/exceptions/controller/class_DefaultControllerException.php @@ -2,11 +2,11 @@ /** * This exception is thrown when the default controller is missing * - * @author Roland Haeder + * @author Roland Haeder * @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); }