blob: ea66af89064f1ed9b1ca94e753bc7d333b9c96dc (
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
36
37
38
39
40
41
|
// **************************************************************************
// * 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 XmlError //Exception class
{
public:
enum Severity
{
WARNING = 77,
FATAL
};
XmlError(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
|