X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fclasses%2Fexceptions%2Ftemplate%2Fclass_UnexpectedTemplateTypeException.php;h=bfb096e9714fdc7197fd57b85cb201b4cce1998c;hp=b1d0d14b8164dd0882df65b4a5f8c99d72b44031;hb=3f7247b52f1b837bb70e6d8584e3f762ba17cb05;hpb=bde5ba03c1ba1277cfba56f0d6892a3b9246d3b3 diff --git a/inc/classes/exceptions/template/class_UnexpectedTemplateTypeException.php b/inc/classes/exceptions/template/class_UnexpectedTemplateTypeException.php index b1d0d14b81..bfb096e971 100644 --- a/inc/classes/exceptions/template/class_UnexpectedTemplateTypeException.php +++ b/inc/classes/exceptions/template/class_UnexpectedTemplateTypeException.php @@ -3,10 +3,10 @@ * An exception thrown when the template type is not supported * * @author Roland Haeder - * @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 @@ -19,23 +19,23 @@ * 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 . + * along with this program. If not, see . */ 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 %s entspricht nicht dem erwartetem Template-Typ %s.", - $class[0]->__toString(), + $msgArray[0]->__toString(), $this->getLine(), - $class[1], - $class[2] + $msgArray[1], + $msgArray[2] ); // Call parent constructor