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(
"ExceptionObjectError: %1").arg(
error);
The VExceptionObjectError class for exception object error.
VExceptionObjectError & operator=(const VExceptionObjectError &e)
QString TagName() const
TagName return tag name.
VExceptionObjectError(const QString &what, const QDomElement &domElement)
VExceptionObjectError exception object error.
qint32 lineNumber
lineNumber line number
QString tagName
tagName tag name
virtual QString ErrorMessage() const Q_DECL_OVERRIDE
ErrorMessage return main error message.
virtual QString DetailedInformation() const Q_DECL_OVERRIDE
DetailedInformation return detailed information about error.
QString tagText
tagText tag text
QString TagText() const
TagText return tag text.
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)