summaryrefslogtreecommitdiff
path: root/zen/osx_error.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:23:48 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:23:48 +0200
commitee1c8c5c25d25dfa42120125a8a45dc9831ee412 (patch)
tree67aa287157db954e0cadeee05b4aad331eb2ecf2 /zen/osx_error.h
parent5.13 (diff)
downloadFreeFileSync-ee1c8c5c25d25dfa42120125a8a45dc9831ee412.tar.gz
FreeFileSync-ee1c8c5c25d25dfa42120125a8a45dc9831ee412.tar.bz2
FreeFileSync-ee1c8c5c25d25dfa42120125a8a45dc9831ee412.zip
5.14
Diffstat (limited to 'zen/osx_error.h')
-rw-r--r--zen/osx_error.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/zen/osx_error.h b/zen/osx_error.h
new file mode 100644
index 00000000..4b0aeb3b
--- /dev/null
+++ b/zen/osx_error.h
@@ -0,0 +1,27 @@
+// **************************************************************************
+// * This file is part of the FreeFileSync project. It is distributed under *
+// * GNU General Public License: http://www.gnu.org/licenses/gpl.html *
+// * Copyright (C) Zenju (zenju AT gmx DOT de) - All Rights Reserved *
+// **************************************************************************
+
+#ifndef OSX_ERRROR_834270598342753425
+#define OSX_ERRROR_834270598342753425
+
+#include <string>
+
+namespace osx
+{
+class OsxError //Exception base class used to notify file/directory copy/delete errors
+{
+public:
+ explicit OsxError(const std::wstring& message) : msg(message) {}
+ virtual ~OsxError() {}
+
+ const std::wstring& toString() const { return msg; }
+
+private:
+ std::wstring msg;
+};
+}
+
+#endif //OSX_ERRROR_834270598342753425
bgstack15