xmlloadingexception.h
Go to the documentation of this file.
00001 #ifndef XMLLOADINGEXCEPTION_H
00002 #define XMLLOADINGEXCEPTION_H
00003 
00004 #include <exception>
00005 #include <QString>
00006 #include <QDomElement>
00007 
00008 class XmlLoadingException : public std::exception
00009 {
00010 public:
00011     XmlLoadingException(const QString& msg, const QDomElement& node) throw()
00012         : m_msg(msg)
00013         , m_line(node.lineNumber())
00014         , m_col(node.columnNumber())
00015     {}
00016     ~XmlLoadingException() throw() {}
00017 
00018     QString msg() const { return m_msg; }
00019     int lineNumber() const { return m_line; }
00020     int columnNumber() const { return m_col; }
00021 
00022 private:
00023     QString m_msg;
00024     int m_line;
00025     int m_col;
00026 };
00027 
00028 #endif // XMLLOADINGEXCEPTION_H


hector_nist_arena_designer
Author(s): Johannes Simon, Stefan Kohlbrecher
autogenerated on Thu Aug 27 2015 13:12:37