X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=blobdiff_plain;f=inc%2Fclasses%2Fexceptions%2Fmain%2Fclass_NoArrayCreatedException.php;h=dd1e7fa75127fc608903953046025e7d3a0987a3;hp=69e4ad2455036817bcb978dfbc8b3334714f5d84;hb=2a157996efd680b87b0a84cc95b91619ea6e81d9;hpb=ff66822b5fb6a92f5dc8af55290ecb89ec7f1aaf diff --git a/inc/classes/exceptions/main/class_NoArrayCreatedException.php b/inc/classes/exceptions/main/class_NoArrayCreatedException.php index 69e4ad2..dd1e7fa 100644 --- a/inc/classes/exceptions/main/class_NoArrayCreatedException.php +++ b/inc/classes/exceptions/main/class_NoArrayCreatedException.php @@ -2,10 +2,11 @@ /** * An exception thrown then no array was created in a dynamic environment * - * @author Roland Haeder - * @version 0.0 + * @author Roland Haeder + * @version 0.3.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 * * 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 @@ -24,14 +25,11 @@ class NoArrayCreatedException 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] %s ist kein erstelltes Objekt.", $array[0]->__toString(),