54 #include <QDomElement>
55 #include <QTextStream>
66 :
VException(what), tagText(QString()), tagName(QString()), lineNumber(-1)
68 Q_ASSERT_X(not domElement.isNull(), Q_FUNC_INFO,
"domElement is null");
70 domElement.save(stream, 4);
81 :
VException(e), tagText(e.TagText()), tagName(e.TagName()), lineNumber(e.LineNumber())
105 return QString(
"ExceptionWrongId: %1").arg(
error);
The VExceptionWrongId class for exception wrong id.
QString TagName() const
TagName return tag name.
VExceptionWrongId(const QString &what, const QDomElement &domElement)
VExceptionWrongId exception wrong parameter id.
QString tagText
tagText tag text
virtual QString DetailedInformation() const Q_DECL_OVERRIDE
DetailedInformation return detailed information about error.
qint32 lineNumber
lineNumber line number
virtual QString ErrorMessage() const Q_DECL_OVERRIDE
ErrorMessage return main error message.
QString tagName
tagName tag name
QString TagText() const
TagText return tag text.
VExceptionWrongId & operator=(const VExceptionWrongId &e)
qint32 LineNumber() const
LineNumber return line number in file.
The VException class parent for all exception. Could be use for abstract exception.
QString MoreInfo(const QString &detInfo) const
QString error
error string with error
VException & operator=(const VException &e)