Type-hints fixed, header docs fixed, exceptions deprecated
[shipsimu.git] / inc / classes / exceptions / main / class_NullPointerException.php
index 42ed410f3ed0c33dd8146d4f5bf04967c6ff8974..b3cb0c75f26b5416fcb05ca20e01fc4e204035db 100644 (file)
@@ -25,13 +25,13 @@ class NullPointerException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $message                Message from the exception
-        * @param               $code           Code number for the exception
+        * @param       $class  Class throwing this exception
+        * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (FrameworkInterface $class, $code) {
                // Add a message around the missing class
-               $message = sprintf("[%s:%d] Eine Instanz/Pointer ist auf <em>null</em> gesetzt.",
+               $message = sprintf("[%s:%d] An object instance is set to <em>null</em>.",
                        $class->__toString(),
                        $this->getLine()
                );