GException_xml.cpp
1.77 KB
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
/***************************************************************************
* GException_xml.cpp - XML exception handlers *
* ----------------------------------------------------------------------- *
* copyright (C) 2010 by Jurgen Knodlseder *
* ----------------------------------------------------------------------- *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
/* __ Includes ___________________________________________________________ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GException.hpp"
#include "GTools.hpp"
/***********************************************************************//**
* @brief XML syntax error
*
* @param[in] origin Method that throws the error.
* @param[in] segment XML segment for which syntax error was encountered.
* @param[in] message Optional error message.
***************************************************************************/
GException::xml_syntax_error::xml_syntax_error(std::string origin,
std::string segment,
std::string message)
{
// Set origin and message
m_origin = origin;
m_message = "XML syntax error ("+message+") occured in "+segment;
// Return
return;
}