]> git.mxchange.org Git - mailer.git/blobdiff - inc/classes/exceptions/database/local_file/class_SavePathIsEmptyException.php
0.3.0 inital import
[mailer.git] / inc / classes / exceptions / database / local_file / class_SavePathIsEmptyException.php
diff --git a/inc/classes/exceptions/database/local_file/class_SavePathIsEmptyException.php b/inc/classes/exceptions/database/local_file/class_SavePathIsEmptyException.php
new file mode 100644 (file)
index 0000000..6d9c9c2
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+
+// An exception class for lost classes... ;-)
+class SavePathIsEmptyException extends FrameworkException {
+       /**
+        * The constructor
+        *
+        * @param               $message                Message from the exception
+        * @param               $code           Code number for the exception
+        * @return      void
+        */
+       public final function __construct ($class, $code) {
+               // Add a message around the missing class
+               $message = sprintf("[%s:%d] Der Speicherpfad ist leer.",
+                       $class->__toString(),
+                       $this->getLine()
+               );
+
+               // Call parent constructor
+               parent::__construct($message, $code);
+       }
+}
+
+// [EOF]
+?>