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/restore.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/restore.h') diff --git a/src/restore.h b/src/restore.h index 0ea9549..4aee092 100644 --- a/src/restore.h +++ b/src/restore.h @@ -27,15 +27,13 @@ #ifndef RESTORE_H #define RESTORE_H +#include "exception.h" #include "options.h" -class RestoreError : public std::runtime_error +class RestoreError : public DiffddError { public: - explicit RestoreError(const std::string &message) - : std::runtime_error(message) - { - } + explicit RestoreError(const std::string &message) : DiffddError(message) {} }; void restore(const OptionsRestore &opts); -- cgit v1.2.3