X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=blobdiff_plain;f=inc%2Fclasses%2Fexceptions%2Fmain%2Fclass_InvalidObjectException.php;h=cc19b753508d0cf5cd1a192cbd33e850595ab9e7;hp=c74eecbc8699dcca60b9565d511a27849e1b1e50;hb=b912eda46059527fc0475e043944c3ebff47fbcd;hpb=6a235495afbc92d4116f94be590d40feb1ad7905 diff --git a/inc/classes/exceptions/main/class_InvalidObjectException.php b/inc/classes/exceptions/main/class_InvalidObjectException.php index c74eecb..cc19b75 100644 --- a/inc/classes/exceptions/main/class_InvalidObjectException.php +++ b/inc/classes/exceptions/main/class_InvalidObjectException.php @@ -3,10 +3,10 @@ * An exception thrown when an instance variable instances a non-object * * @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,7 +19,7 @@ * 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 InvalidObjectException extends FrameworkException { /** @@ -29,12 +29,12 @@ class InvalidObjectException extends FrameworkException { * @param $code Code number for the exception * @return void */ - public final function __construct ($class, $code) { + public function __construct (BaseFrameworkSystem $class, $code) { // Add a message around the missing class $message = sprintf("[%s:%d] Objekte sind nicht erlaubt. (Objekt: %s)", $class->__toString(), $this->getLine(), - $class->getPartDescr() + $class->getObjectDescription() ); // Call parent constructor