summaryrefslogtreecommitdiff
path: root/shared/xml_error.h
blob: ffd6af8b6d5b98cf5743496f6bf57f200d15b1be (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
28
29
30
31
32
33
34
35
// **************************************************************************
// * 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) 2008-2011 ZenJu (zhnmju123 AT gmx.de)                    *
// **************************************************************************
//
#ifndef XMLERROR_H_INCLUDED
#define XMLERROR_H_INCLUDED

#include <wx/string.h>


namespace xmlAccess
{

class FfsXmlError //Exception class
{
public:
    enum Severity
    {
        WARNING = 77,
        FATAL
    };

    FfsXmlError(const wxString& message, Severity sev = FATAL) : errorMessage(message), m_severity(sev) {}

    const wxString& msg() const { return errorMessage; }
    Severity getSeverity() const { return m_severity; }
private:
    const wxString errorMessage;
    const Severity m_severity;
};
}

#endif // XMLERROR_H_INCLUDED
bgstack15