X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=blobdiff_plain;f=inc%2Fclasses%2Fexceptions%2Fmain%2Fclass_InvalidObjectException.php;h=7a002d4550397501105fb5a54065f277a1e51414;hp=dc6cd4e323cd6adf68f9497ef63775467612643d;hb=ec23e72b16433ac136817f3ea78697fb70236e4a;hpb=e2846002167edccccb1240437f40ee057075d0d9 diff --git a/inc/classes/exceptions/main/class_InvalidObjectException.php b/inc/classes/exceptions/main/class_InvalidObjectException.php index dc6cd4e..7a002d4 100644 --- a/inc/classes/exceptions/main/class_InvalidObjectException.php +++ b/inc/classes/exceptions/main/class_InvalidObjectException.php @@ -31,10 +31,9 @@ class InvalidObjectException extends FrameworkException { */ public function __construct (FrameworkInterface $class, $code) { // Add a message around the missing class - $message = sprintf("[%s:%d] Objects of type %s are not allowed here.", + $message = sprintf("[%s:%d] Object is not allowed here.", $class->__toString(), - $this->getLine(), - $class->getObjectDescription() + $this->getLine() ); // Call parent constructor