db/simple: migrate Mount() from class Error to C++ exceptions

This commit is contained in:
Max Kellermann
2016-10-29 10:56:31 +02:00
parent fac8edd47a
commit df142d4f61
3 changed files with 8 additions and 16 deletions

View File

@@ -98,9 +98,11 @@ public:
gcc_nonnull_all
void Mount(const char *uri, Database *db);
/**
* Throws #std::runtime_error on error.
*/
gcc_nonnull_all
bool Mount(const char *local_uri, const char *storage_uri,
Error &error);
void Mount(const char *local_uri, const char *storage_uri);
gcc_nonnull_all
bool Unmount(const char *uri);