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

@@ -26,15 +26,16 @@ struct ConfigBlock;
class EventLoop;
class DatabaseListener;
class Database;
class Error;
/**
* Initialize the database library.
*
* Throws #std::runtime_error on error.
*
* @param block the database configuration block
*/
Database *
DatabaseGlobalInit(EventLoop &loop, DatabaseListener &listener,
const ConfigBlock &block, Error &error);
const ConfigBlock &block);
#endif