00001 <?php 00025 // Zum Testen speichern wir in lokale Dateien (LocalFileDatabase) 00026 try { 00027 $layerInstance = LocalFileDatabase::createLocalFileDatabase(FrameworkConfiguration::getInstance()->readConfig('local_db_path'), FileIoHandler::getInstance()); 00028 } catch (SavePathIsEmptyException $e) { 00029 ApplicationEntryPoint::app_die(sprintf("[Main:] Database layer could not be initialized. Reason: <span class=\"exception_reason\">%s</span>", 00030 $e->getMessage() 00031 )); 00032 } catch (SavePathNotFoundException $e) { 00033 ApplicationEntryPoint::app_die(sprintf("[Main:] Database layer could not be initialized. Reason: <span class=\"exception_reason\">%s</span>", 00034 $e->getMessage() 00035 )); 00036 } catch (SavePathIsNoDirectoryException $e) { 00037 ApplicationEntryPoint::app_die(sprintf("[Main:] Database layer could not be initialized. Reason: <span class=\"exception_reason\">%s</span>", 00038 $e->getMessage() 00039 )); 00040 } catch (SavePathReadProtectedException $e) { 00041 ApplicationEntryPoint::app_die(sprintf("[Main:] Database layer could not be initialized. Reason: <span class=\"exception_reason\">%s</span>", 00042 $e->getMessage() 00043 )); 00044 } catch (SavePathWriteProtectedException $e) { 00045 ApplicationEntryPoint::app_die(sprintf("[Main:] Database layer could not be initialized. Reason: <span class=\"exception_reason\">%s</span>", 00046 $e->getMessage() 00047 )); 00048 } 00049 00050 // [EOF] 00051 ?>
1.5.6