X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fclasses%2Fexceptions%2Fcontroller%2Fclass_DefaultControllerException.php;h=e0c891c7bb765ce9e8cf0bd0572ae9512d9b5fd3;hp=5a93a29cf0c91c520eea73bcd6ecdb4c8ac9f40c;hb=2230a2e7e09b6b47fe3d68181a28a4435c1732e6;hpb=4365745a3952764d684556852c31d0e8cba5e58e diff --git a/inc/classes/exceptions/controller/class_DefaultControllerException.php b/inc/classes/exceptions/controller/class_DefaultControllerException.php index 5a93a29cf0..e0c891c7bb 100644 --- a/inc/classes/exceptions/controller/class_DefaultControllerException.php +++ b/inc/classes/exceptions/controller/class_DefaultControllerException.php @@ -4,7 +4,7 @@ * * @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 * @@ -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); }