aboutsummaryrefslogtreecommitdiff
path: root/src/restore.h
diff options
context:
space:
mode:
authorJan Sucan <jan@jansucan.com>2024-04-07 14:49:38 +0200
committerJán Sučan <jan@jansucan.com>2024-04-07 15:01:38 +0200
commit4d7dd62fcf8d0f1feb96dc0749aa3003750ff7eb (patch)
treebbd48b1302c3ad8e6cf98ff640159354a2f32393 /src/restore.h
parent43de68e11816e7836b32177dd2ec2e88f14564c5 (diff)
Add a common exception parent class
Diffstat (limited to 'src/restore.h')
-rw-r--r--src/restore.h8
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);