0.3.0 inital import
[mailer.git] / inc / database / lib-local.php
diff --git a/inc/database/lib-local.php b/inc/database/lib-local.php
new file mode 100644 (file)
index 0000000..9d52dcd
--- /dev/null
@@ -0,0 +1,28 @@
+<?php
+// Zum Testen speichern wir in lokale Dateien (LocalFileDatabase)
+try {
+       $layer = LocalFileDatabase::createLocalFileDatabase(PATH . "db/", FileIOHandler::getInstance());
+} catch (SavePathIsEmptyException $e) {
+       ApplicationEntryPoint::app_die(sprintf("[Main:] Debug-Instanz konnte nicht gesetzt werden. Reason: <strong>%s</strong><br />\n",
+               $e->getMessage()
+       ));
+} catch (SavePathNotFoundException $e) {
+       ApplicationEntryPoint::app_die(sprintf("[Main:] Debug-Instanz konnte nicht gesetzt werden. Reason: <strong>%s</strong><br />\n",
+               $e->getMessage()
+       ));
+} catch (SavePathIsNoDirectoryException $e) {
+       ApplicationEntryPoint::app_die(sprintf("[Main:] Debug-Instanz konnte nicht gesetzt werden. Reason: <strong>%s</strong><br />\n",
+               $e->getMessage()
+       ));
+} catch (SavePathReadProtectedException $e) {
+       ApplicationEntryPoint::app_die(sprintf("[Main:] Debug-Instanz konnte nicht gesetzt werden. Reason: <strong>%s</strong><br />\n",
+               $e->getMessage()
+       ));
+} catch (SavePathWriteProtectedException $e) {
+       ApplicationEntryPoint::app_die(sprintf("[Main:] Debug-Instanz konnte nicht gesetzt werden. Reason: <strong>%s</strong><br />\n",
+               $e->getMessage()
+       ));
+}
+
+// [EOF]
+?>