generateUniqueId() and more useless/deprecated methods removed, code speed-up, link...
[shipsimu.git] / inc / classes / exceptions / main / class_InvalidObjectException.php
index dc6cd4e323cd6adf68f9497ef63775467612643d..7a002d4550397501105fb5a54065f277a1e51414 100644 (file)
@@ -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 <span id=\"exception_reason\">%s</span> are not allowed here.",
+               $message = sprintf("[%s:%d] Object is not allowed here.",
                        $class->__toString(),
-                       $this->getLine(),
-                       $class->getObjectDescription()
+                       $this->getLine()
                );
 
                // Call parent constructor