db/Configured: migrate from class Error to C++ exceptions

This commit is contained in:
Max Kellermann
2016-10-28 23:00:10 +02:00
parent 318d0b3976
commit 78bf4ef5fa
5 changed files with 24 additions and 35 deletions

View File

@@ -25,15 +25,15 @@
class EventLoop;
class DatabaseListener;
class Database;
class Error;
/**
* Read database configuration settings and create a #Database
* instance from it, but do not open it. Returns nullptr on error or
* if no database is configured (no #Error set in that case).
* instance from it, but do not open it. Returns nullptr if no
* database is configured.
*
* Throws #std::runtime_error on error.
*/
Database *
CreateConfiguredDatabase(EventLoop &loop, DatabaseListener &listener,
Error &error);
CreateConfiguredDatabase(EventLoop &loop, DatabaseListener &listener);
#endif