X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fclasses%2Fexceptions%2Fmain%2Fclass_VariableIsNotSetException.php;h=7d05f69d083a2374a5cdf38a4c4994d303c56aec;hb=e715e324e8c85368b6ff53d8a9d5a20575bc7e32;hp=821dfb40aef55f37da78bfe2d37974432ecb9c3c;hpb=ff66822b5fb6a92f5dc8af55290ecb89ec7f1aaf;p=shipsimu.git diff --git a/inc/classes/exceptions/main/class_VariableIsNotSetException.php b/inc/classes/exceptions/main/class_VariableIsNotSetException.php index 821dfb4..7d05f69 100644 --- a/inc/classes/exceptions/main/class_VariableIsNotSetException.php +++ b/inc/classes/exceptions/main/class_VariableIsNotSetException.php @@ -2,10 +2,11 @@ /** * An exception thrown when a variable is not set * - * @author Roland Haeder - * @version 0.0 + * @author Roland Haeder + * @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 @@ -18,20 +19,17 @@ * 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 VariableIsNotSetException extends FrameworkException { /** * The constructor * - * @param $message Message from the exception - * @param $code Code number for the exception + * @param $array Message from the exception + * @param $code Code number for the exception * @return void */ - public final function __construct ($array, $code) { - // Cast the array - $array = (array) $array; - + public function __construct (array $array, $code) { // Add a message around the missing class $message = sprintf("[%s:%d] Bei der Initialisierung der Applikation %s wurde keine Variable %s erzeugt.", $array[0]->__toString(),