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/restore.h | |
| parent | 43de68e11816e7836b32177dd2ec2e88f14564c5 (diff) | |
Add a common exception parent class
Diffstat (limited to 'src/restore.h')
| -rw-r--r-- | src/restore.h | 8 |
1 files changed, 3 insertions, 5 deletions
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); |
