]> git.mxchange.org Git - mailer.git/blobdiff - inc/classes/exceptions/main/class_NoArrayException.php
0.3.0 inital import
[mailer.git] / inc / classes / exceptions / main / class_NoArrayException.php
diff --git a/inc/classes/exceptions/main/class_NoArrayException.php b/inc/classes/exceptions/main/class_NoArrayException.php
new file mode 100644 (file)
index 0000000..dbe5e7f
--- /dev/null
@@ -0,0 +1,24 @@
+<?php
+
+// An exception class for lost classes... ;-)
+class NoArrayException extends FrameworkException {
+       /**
+        * The constructor
+        *
+        * @param               $message                Message from the exception
+        * @param               $code           Code number for the exception
+        * @return      void
+        */
+       public final function __construct ($string, $code) {
+               // Add a message around the missing class
+               $message = sprintf("<u>%s</u> ist kein Array!",
+                       $string
+               );
+
+               // Call parent constructor
+               parent::__construct($message, $code);
+       }
+}
+
+// [EOF]
+?>