db/simple: throw C++ exception on init error

This commit is contained in:
Max Kellermann
2016-10-28 23:05:13 +02:00
parent e17805f208
commit 7e5ce623fe
2 changed files with 13 additions and 25 deletions

View File

@@ -67,7 +67,7 @@ class SimpleDatabase : public Database {
mutable unsigned borrowed_song_count;
#endif
SimpleDatabase();
SimpleDatabase(const ConfigBlock &block);
SimpleDatabase(AllocatedPath &&_path, bool _compress);