/**
* This exception is thrown when a task is invalid
*
- * @author Roland Haeder <webmaster@ship-simu.org>
+ * @author Roland Haeder <webmaster@shipsimu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Hub Developer Team
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Hub Developer Team
* @license GNU GPL 3.0 or any newer version
- * @link http://www.ship-simu.org
+ * @link http://www.shipsimu.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
/**
* 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