diff options
Diffstat (limited to 'src/backup.h')
| -rw-r--r-- | src/backup.h | 11 |
1 files changed, 10 insertions, 1 deletions
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 */ |
