diff options
Diffstat (limited to 'zen/osx_error.h')
-rw-r--r-- | zen/osx_error.h | 27 |
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 |