X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fclasses%2Fexceptions%2Fstacker%2Fclass_AlreadyInitializedStackerException.php;h=4e4d7757bd2fa99b00e60aafcc7cbc676b66c890;hb=5e8d509d1607ce2e63f5b401f7cee2ba219ad49c;hp=2b0cd79d4cdc449980246a58095c22ce63686b15;hpb=c3106ae537f1d46274988826a070632a439e2c49;p=core.git diff --git a/inc/classes/exceptions/stacker/class_AlreadyInitializedStackerException.php b/inc/classes/exceptions/stacker/class_AlreadyInitializedStackerException.php index 2b0cd79d..4e4d7757 100644 --- a/inc/classes/exceptions/stacker/class_AlreadyInitializedStackerException.php +++ b/inc/classes/exceptions/stacker/class_AlreadyInitializedStackerException.php @@ -2,11 +2,11 @@ /** * Thrown if a stacker is already initialized * - * @author Roland Haeder + * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2013 Core Developer Team * @license GNU GPL 3.0 or any newer version - * @link http://www.ship-simu.org + * @link http://www.shipsimu.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 @@ -25,16 +25,17 @@ class AlreadyInitializedStackerException extends FrameworkException { /** * The super constructor for all exceptions * - * @param $messageArray Error message array - * @param $code Error code + * @param $messageArray Error message array + * @param $code Error code * @return void */ - public function __construct(array $messageArray, $code) { + public function __construct (array $messageArray, $code) { // Construct message - $message = sprintf("[%s:%d] Stacker %s already initialized.", + $message = sprintf('[%s:%d] Stacker %s already initialized, forceReInit=%d.', $messageArray[0]->__toString(), - $this->getLine(0), - $messageArray[1] + $this->getLine(), + $messageArray[1], + intval($messageArray[2]) ); // Call parent exception constructor