From 4d7dd62fcf8d0f1feb96dc0749aa3003750ff7eb Mon Sep 17 00:00:00 2001 From: Jan Sucan Date: Sun, 7 Apr 2024 14:49:38 +0200 Subject: Add a common exception parent class --- src/backup.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/backup.h') 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); -- cgit v1.2.3