17 #include <QtCore/QFile> 18 #include <QtCore/QString> 36 : mFile(file), mErrorMessage(errorMessage), mErrorLine(errorLine), mErrorColumn(errorColumn)
38 QLOG_ERROR() << QString(
"Failed to parse %1, %2:%3 - %4")
71 const QString mErrorMessage;
73 const int mErrorColumn;
QString errorMessage() const
Returns error message.
Definition: failedToParseXmlException.h:52
Definition: analogSensor.h:23
#define QLOG_ERROR()
Definition: QsLog.h:104
Base class for all exceptions in TRIKRuntime.
Definition: trikRuntimeException.h:22
const QFile & file() const
Returns XML file that is failed to parse.
Definition: failedToParseXmlException.h:46
FailedToParseXmlException(const QFile &file, const QString &errorMessage, int errorLine, int errorColumn)
Constructor.
Definition: failedToParseXmlException.h:35
int errorLine() const
Returns line in XML document where error occured.
Definition: failedToParseXmlException.h:58
int errorColumn() const
Returns column in XML document where error occured.
Definition: failedToParseXmlException.h:64
Exception that is thrown when XML file is corrupt and "setContent" method of QDomDocument has failed...
Definition: failedToParseXmlException.h:27