]> git.mxchange.org Git - mailer.git/blobdiff - inc/classes/exceptions/template/class_BasePathIsNoDirectoryException.php
0.3.0 inital import
[mailer.git] / inc / classes / exceptions / template / class_BasePathIsNoDirectoryException.php
diff --git a/inc/classes/exceptions/template/class_BasePathIsNoDirectoryException.php b/inc/classes/exceptions/template/class_BasePathIsNoDirectoryException.php
new file mode 100644 (file)
index 0000000..6e84bdb
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+
+// An exception class for lost classes... ;-)
+class BasePathIsNoDirectoryException extends FrameworkException {
+       /**
+        * The constructor
+        *
+        * @param               $class          An array holding our informations
+        * @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 Template-Basispfad <u>%s</u> existiert nicht oder ist eine Datei!",
+                       $class[0]->__toString(),
+                       $this->getLine(),
+                       $class[1]
+               );
+
+               // Call parent constructor
+               parent::__construct($message, $code);
+       }
+}
+
+// [EOF]
+?>