summaryrefslogtreecommitdiff
path: root/zen/file_error.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <shieldwed@outlook.com>2018-05-09 00:04:33 +0200
committerDaniel Wilhelm <shieldwed@outlook.com>2018-05-09 00:04:33 +0200
commit017e56b81ba735c39c43701f737ac7dde55da7b4 (patch)
treeea7aaaee13a06a702701e2f74f5d390e10ae303e /zen/file_error.h
parent9.4 (diff)
downloadFreeFileSync-017e56b81ba735c39c43701f737ac7dde55da7b4.tar.gz
FreeFileSync-017e56b81ba735c39c43701f737ac7dde55da7b4.tar.bz2
FreeFileSync-017e56b81ba735c39c43701f737ac7dde55da7b4.zip
9.5
Diffstat (limited to 'zen/file_error.h')
-rwxr-xr-xzen/file_error.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/zen/file_error.h b/zen/file_error.h
index b318e708..18e790de 100755
--- a/zen/file_error.h
+++ b/zen/file_error.h
@@ -14,8 +14,7 @@
namespace zen
{
-//A high-level exception class giving detailed context information for end users
-class FileError
+class FileError //A high-level exception class giving detailed context information for end users
{
public:
explicit FileError(const std::wstring& msg) : msg_(msg) {}
@@ -28,7 +27,7 @@ private:
std::wstring msg_;
};
-#define DEFINE_NEW_FILE_ERROR(X) struct X : public FileError { X(const std::wstring& msg) : FileError(msg) {} X(const std::wstring& msg, const std::wstring& descr) : FileError(msg, descr) {} };
+#define DEFINE_NEW_FILE_ERROR(X) struct X : public zen::FileError { X(const std::wstring& msg) : FileError(msg) {} X(const std::wstring& msg, const std::wstring& descr) : FileError(msg, descr) {} };
DEFINE_NEW_FILE_ERROR(ErrorTargetExisting);
//DEFINE_NEW_FILE_ERROR(ErrorTargetPathMissing);
bgstack15