summaryrefslogtreecommitdiff
path: root/library/fileError.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 16:59:06 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 16:59:06 +0200
commit4046be06720932a57a0f49416b0144b2858824d0 (patch)
tree678c37cab05960f48923a23bb46d9e01be89d35a /library/fileError.h
parent1.19 (diff)
downloadFreeFileSync-4046be06720932a57a0f49416b0144b2858824d0.tar.gz
FreeFileSync-4046be06720932a57a0f49416b0144b2858824d0.tar.bz2
FreeFileSync-4046be06720932a57a0f49416b0144b2858824d0.zip
2.0
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