]> 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 e1b1c3e5708c8e44ffaf1a6c3f4592b9f793390e..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 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