summaryrefslogtreecommitdiff
path: root/src/db/Interface.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2016-03-18 22:17:46 +0100
committerMax Kellermann <max@duempel.org>2016-03-19 00:05:11 +0100
commitf55bdf07d38652ba1eeab4ba4016ed5c6267d692 (patch)
tree0f626d19a43094f19cd7b2b8f3ec1515ca9e6fb3 /src/db/Interface.hxx
parent6c2b532ae3c0987ca7f5ce9a6994617959cac20e (diff)
db/Interface: Open() throws exception on error
Diffstat (limited to 'src/db/Interface.hxx')
-rw-r--r--src/db/Interface.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/db/Interface.hxx b/src/db/Interface.hxx
index 852084280..e0c29395c 100644
--- a/src/db/Interface.hxx
+++ b/src/db/Interface.hxx
@@ -55,9 +55,10 @@ public:
/**
* Open the database. Read it into memory if applicable.
+ *
+ * Throws #DatabaseError or std::runtime_error on error.
*/
- virtual bool Open(gcc_unused Error &error) {
- return true;
+ virtual void Open() {
}
/**