54 #include <QDomElement>
55 #include <QTextStream>
67 const QDomElement &domElement)
68 :
VException(what), name(name), tagText(QString()), tagName(QString()), lineNumber(-1)
70 Q_ASSERT_X(not domElement.isNull(), Q_FUNC_INFO,
"domElement is null");
71 Q_ASSERT_X(not
name.isEmpty(), Q_FUNC_INFO,
"Parameter name is empty");
73 domElement.save(stream, 4);
84 :
VException(e), name(e.Name()), tagText(e.TagText()), tagName(e.TagName()), lineNumber(e.LineNumber())
109 return QString(
"ExceptionEmptyParameter: %1 %2").arg(
error,
name);
The VExceptionEmptyParameter class for exception empty parameter.
qint32 LineNumber() const
LineNumber return line number of tag.
QString Name() const
Name return name of attribute where error.
VExceptionEmptyParameter(const QString &what, const QString &name, const QDomElement &domElement)
VExceptionEmptyParameter exception empty parameter.
virtual QString ErrorMessage() const Q_DECL_OVERRIDE
ErrorMessage return main error message.
QString TagText() const
TagText return tag text.
QString tagText
tagText tag text
QString tagName
tagName tag name
QString TagName() const
TagName return tag name.
qint32 lineNumber
lineNumber line number
virtual QString DetailedInformation() const Q_DECL_OVERRIDE
DetailedInformation return detailed information about error.
VExceptionEmptyParameter & operator=(const VExceptionEmptyParameter &e)
QString name
name name attribute
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)