]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/exceptions/actions/class_InvalidActionException.php
A performed action now always requires an action class
[shipsimu.git] / inc / classes / exceptions / actions / class_InvalidActionException.php
index 4aa1b96acb92f04f4bbf090e42313a7b082e6cb4..96c1b73aeca5d35462cfce80edd09c11712cc184 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @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,16 +25,17 @@ class InvalidActionException extends FrameworkException {
        /**
         * The super constructor for all exceptions
         *
-        * @param               $msgArray       An array with message parts
-        * @param               $code           An optional code for better debugging
+        * @param       $msgArray       An array with message parts
+        * @param       $code           An optional code for better debugging
         * @return      void
         */
        public function __construct(array $msgArray, $code) {
                // Prepare the message
-               $message = sprintf("[%s:%d] Cannot resolve action <u>%s</u>.",
+               $message = sprintf("[%s:%d] Cannot resolve action <span class=\"exception_reason\">%s (%s)</span>.",
                        $msgArray[0]->__toString(),
                        $this->getLine(),
-                       $msgArray[1]
+                       $msgArray[1],
+                       $msgArray[0]->getClassName()
                );
 
                // Call parent contructor with message