Files merged from ship-simu project
[mailer.git] / inc / classes / exceptions / template / class_UnexpectedTemplateTypeException.php
index b1d0d14b8164dd0882df65b4a5f8c99d72b44031..bfb096e9714fdc7197fd57b85cb201b4cce1998c 100644 (file)
@@ -3,10 +3,10 @@
  * An exception thrown when the template type is not supported
  *
  * @author             Roland Haeder <webmaster@mxchange.org>
- * @version            0.3.0
+ * @version            0.0.0
  * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
- * @link               http://www.mxchange.org
+ * @link               http://www.ship-simu.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
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 class UnexpectedTemplateTypeException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $class          An array holding our informations
+        * @param               $msgArray       An array holding our informations
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (array $msgArray, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Der Template-Typ <u>%s</u> entspricht nicht dem erwartetem Template-Typ <u>%s</u>.",
-                       $class[0]->__toString(),
+                       $msgArray[0]->__toString(),
                        $this->getLine(),
-                       $class[1],
-                       $class[2]
+                       $msgArray[1],
+                       $msgArray[2]
                );
 
                // Call parent constructor