summaryrefslogtreecommitdiff
path: root/shared/fileError.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:00:17 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:00:17 +0200
commitfd0853d2623dd278b08288331ed42e3be59252fb (patch)
treea7645daeaef8bdbed064faf4eb88e72cee58726c /shared/fileError.h
parent2.1 (diff)
downloadFreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.tar.gz
FreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.tar.bz2
FreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.zip
2.2
Diffstat (limited to 'shared/fileError.h')
-rw-r--r--shared/fileError.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/shared/fileError.h b/shared/fileError.h
new file mode 100644
index 00000000..f5c6bdbd
--- /dev/null
+++ b/shared/fileError.h
@@ -0,0 +1,25 @@
+#ifndef FILEERROR_H_INCLUDED
+#define FILEERROR_H_INCLUDED
+
+#include <wx/string.h>
+
+
+namespace FreeFileSync
+{
+ class FileError //Exception class used to notify file/directory copy/delete errors
+ {
+ public:
+ FileError(const wxString& message) :
+ errorMessage(message) {}
+
+ const wxString& show() const
+ {
+ return errorMessage;
+ }
+
+ private:
+ wxString errorMessage;
+ };
+}
+
+#endif // FILEERROR_H_INCLUDED
bgstack15