X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fhub%2Fexceptions%2Ftasks%2Fclass_InvalidTaskException.php;h=8505fdaca354982063d18690c231ce3379300d09;hb=7756c313e101f012af9c3ccfc378308f4f03f603;hp=e1b1c3e5708c8e44ffaf1a6c3f4592b9f793390e;hpb=ebb079776a7a148d22964dd140cf4d541fdf3826;p=hub.git diff --git a/application/hub/exceptions/tasks/class_InvalidTaskException.php b/application/hub/exceptions/tasks/class_InvalidTaskException.php index e1b1c3e57..8505fdaca 100644 --- a/application/hub/exceptions/tasks/class_InvalidTaskException.php +++ b/application/hub/exceptions/tasks/class_InvalidTaskException.php @@ -4,7 +4,7 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Hub Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Hub Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.ship-simu.org * @@ -25,14 +25,15 @@ class InvalidTaskException extends FrameworkException { /** * The super constructor for all exceptions * - * @param $messageArray Error message array - * @param $code Error code + * @param $messageArray Error message array + * @param $code Error code * @return void */ public function __construct (array $messageArray, $code) { // Construct the message - $message = sprintf("[%s] Current task is invalid which should not happen.", - $messageArray[0]->__toString() + $message = sprintf('[%s:%d] Current task is invalid which should not happen.', + $messageArray[0]->__toString(), + $this->getLine() ); // Call parent exception constructor