blob: 6e17670a049084e3559e59204329221e10a99fd3 (
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
|