0.3.0 inital import
[mailer.git] / inc / classes / exceptions / main / class_MissingMethodException.php
diff --git a/inc/classes/exceptions/main/class_MissingMethodException.php b/inc/classes/exceptions/main/class_MissingMethodException.php
new file mode 100644 (file)
index 0000000..05c5fc4
--- /dev/null
@@ -0,0 +1,29 @@
+<?php
+
+// An exception class for lost classes... ;-)
+class MissingMethodException extends FrameworkException {
+       /**
+        * The constructor
+        *
+        * @param               $message                Message from the exception
+        * @param               $code           Code number for the exception
+        * @return      void
+        */
+       public final function __construct ($classArray, $code) {
+               // Cast the array
+               $classArray = (array) $classArray;
+
+               // Add a message around the missing class
+               $message = sprintf("[%s:%d] Weisst keine Methode <u>%s()</u> auf!",
+                       $classArray[0]->__toString(),
+                       $this->getLine(),
+                       $classArray[1]
+               );
+
+               // Call parent constructor
+               parent::__construct($message, $code);
+       }
+}
+
+// [EOF]
+?>