db/simple/Save: migrate from class Error to C++ exceptions

This commit is contained in:
Max Kellermann
2016-10-29 09:45:34 +02:00
parent dea46e8d5a
commit 90a14e14f4
11 changed files with 95 additions and 166 deletions
+5 -2
View File
@@ -28,7 +28,10 @@ class Error;
void
directory_save(BufferedOutputStream &os, const Directory &directory);
bool
directory_load(TextFile &file, Directory &directory, Error &error);
/**
* Throws #std::runtime_error on error.
*/
void
directory_load(TextFile &file, Directory &directory);
#endif