db/Configured: migrate from class Error to C++ exceptions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user