xmlloadingexception.h
Go to the documentation of this file.
1 #ifndef XMLLOADINGEXCEPTION_H
2 #define XMLLOADINGEXCEPTION_H
3 
4 #include <exception>
5 #include <QString>
6 #include <QDomElement>
7 
8 class XmlLoadingException : public std::exception
9 {
10 public:
11  XmlLoadingException(const QString& msg, const QDomElement& node) throw()
12  : m_msg(msg)
13  , m_line(node.lineNumber())
14  , m_col(node.columnNumber())
15  {}
16  ~XmlLoadingException() throw() {}
17 
18  QString msg() const { return m_msg; }
19  int lineNumber() const { return m_line; }
20  int columnNumber() const { return m_col; }
21 
22 private:
23  QString m_msg;
24  int m_line;
25  int m_col;
26 };
27 
28 #endif // XMLLOADINGEXCEPTION_H
XmlLoadingException(const QString &msg, const QDomElement &node)
QString msg() const


hector_nist_arena_designer
Author(s): Stefan Kohlbrecher , Johannes Simon
autogenerated on Fri Aug 21 2020 10:45:27