summaryrefslogtreecommitdiff
path: root/zen/osx_error.h
blob: 4b0aeb3b4f5d2c98eba062b7b76f9269fb2ab3cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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