diff options
| author | Jan Sucan <jan@jansucan.com> | 2024-04-07 14:49:38 +0200 |
|---|---|---|
| committer | Ján Sučan <jan@jansucan.com> | 2024-04-07 15:01:38 +0200 |
| commit | 4d7dd62fcf8d0f1feb96dc0749aa3003750ff7eb (patch) | |
| tree | bbd48b1302c3ad8e6cf98ff640159354a2f32393 /src/backup.h | |
| parent | 43de68e11816e7836b32177dd2ec2e88f14564c5 (diff) | |
Add a common exception parent class
Diffstat (limited to 'src/backup.h')
| -rw-r--r-- | src/backup.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/backup.h b/src/backup.h index 289ee62..38a0b68 100644 --- a/src/backup.h +++ b/src/backup.h @@ -27,15 +27,13 @@ #ifndef BACKUP_H #define BACKUP_H +#include "exception.h" #include "options.h" -class BackupError : public std::runtime_error +class BackupError : public DiffddError { public: - explicit BackupError(const std::string &message) - : std::runtime_error(message) - { - } + explicit BackupError(const std::string &message) : DiffddError(message) {} }; void backup(const OptionsBackup &opts); |
