summaryrefslogtreecommitdiff
path: root/library/fileError.h
diff options
context:
space:
mode:
Diffstat (limited to 'library/fileError.h')
-rw-r--r--library/fileError.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/library/fileError.h b/library/fileError.h
new file mode 100644
index 00000000..214cdecb
--- /dev/null
+++ b/library/fileError.h
@@ -0,0 +1,25 @@
+#ifndef FILEERROR_H_INCLUDED
+#define FILEERROR_H_INCLUDED
+
+#include "zstring.h"
+#include "fileError.h"
+
+namespace FreeFileSync
+{
+ class FileError //Exception class used to notify file/directory copy/delete errors
+ {
+ public:
+ FileError(const Zstring& message) :
+ errorMessage(message) {}
+
+ const Zstring& show() const
+ {
+ return errorMessage;
+ }
+
+ private:
+ Zstring errorMessage;
+ };
+}
+
+#endif // FILEERROR_H_INCLUDED
bgstack15