aboutsummaryrefslogtreecommitdiff
path: root/src/restore.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/restore.h')
-rw-r--r--src/restore.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/restore.h b/src/restore.h
index 457ef48..0ea9549 100644
--- a/src/restore.h
+++ b/src/restore.h
@@ -29,6 +29,15 @@
#include "options.h"
-int restore(const OptionsRestore &opts);
+class RestoreError : public std::runtime_error
+{
+ public:
+ explicit RestoreError(const std::string &message)
+ : std::runtime_error(message)
+ {
+ }
+};
+
+void restore(const OptionsRestore &opts);
#endif /* RESTORE_H */