From 9f0e7e0cb8a3599d7b2be13f34963f7baf9158e7 Mon Sep 17 00:00:00 2001 From: Jan Sucan Date: Sun, 31 Mar 2024 12:25:35 +0200 Subject: Rewrite the backup and restore code in object-oriented way --- src/backup.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/backup.h') diff --git a/src/backup.h b/src/backup.h index 9629cb7..289ee62 100644 --- a/src/backup.h +++ b/src/backup.h @@ -29,6 +29,15 @@ #include "options.h" -int backup(const OptionsBackup &opts); +class BackupError : public std::runtime_error +{ + public: + explicit BackupError(const std::string &message) + : std::runtime_error(message) + { + } +}; + +void backup(const OptionsBackup &opts); #endif /* BACKUP_H */ -- cgit v1.2.3