]> git.mxchange.org Git - hub.git/blobdiff - application/hub/exceptions/tasks/class_InvalidTaskException.php
Added exceptions + some code:
[hub.git] / application / hub / exceptions / tasks / class_InvalidTaskException.php
index 5725e734042e3bcc38dd8b0af9c5ede9c676dbf7..8505fdaca354982063d18690c231ce3379300d09 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 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
  *
@@ -31,8 +31,9 @@ class InvalidTaskException extends FrameworkException {
         */
        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