<?php
/**
- * An exception throws when the template type is not supported
+ * An exception thrown when the template type is not supported
*
* @author Roland Haeder <webmaster@ship-simu.org>
- * @version 0.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.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
* the Free Software Foundation, either version 3 of the License, or
* 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 final function __construct ($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(),
+ $message = sprintf("[%s:%d] Der Template-Typ <span id=\"exception_reason\">%s</span> entspricht nicht dem erwartetem Template-Typ <span id=\"exception_reason\">%s</span>.",
+ $msgArray[0]->__toString(),
$this->getLine(),
- $class[1],
- $class[2]
+ $msgArray[1],
+ $msgArray[2]
);
// Call parent constructor