57 #include "../ifcdef.h"
67 :QException(), error(error), moreInfo(QString())
69 Q_ASSERT_X(not
error.isEmpty(), Q_FUNC_INFO,
"Error message is empty");
99 return tr(
"Exception: %1").arg(
error);
121 return QString(
"%1\n%2").arg(
moreInfo, detInfo);
163 return error.toUtf8().constData();
The VException class parent for all exception. Could be use for abstract exception.
virtual Q_REQUIRED_RESULT VException * clone() const Q_DECL_OVERRIDE
clone clone exception
QString MoreInfo(const QString &detInfo) const
VException(const QString &error)
VException constructor exception.
QString MoreInformation() const
MoreInformation return more information for error.
virtual QString ErrorMessage() const
ErrorMessage return main error message.
QString error
error string with error
void AddMoreInformation(const QString &info)
AddMoreInformation add more information for error.
virtual const char * what() const Q_DECL_OVERRIDE
QString moreInfo
moreInfo more information about error
VException & operator=(const VException &e)
QString WhatUtf8() const
What return string with error.
virtual QString DetailedInformation() const
DetailedInformation return detailed information about error.
virtual Q_NORETURN void raise() const Q_DECL_OVERRIDE
raise method raise for exception
#define V_NOEXCEPT_EXPR(x)