18 #include "qgsversion.h"
19 #include "qgsconfig.h"
26 : mMessage( theMessage )
29 , mFunction( theFunction )
37 append( theMessage, theTag );
47 mMessageList.
append( theMessage );
55 #if defined(QGISDEBUG) && defined(QGS_GIT_REMOTE_URL)
63 srcUrl =
"https://github.com/" + path +
"/blob/" + hash;
72 int sPrefixLength = strlen( CMAKE_SOURCE_DIR ) + 1;
73 file = m.
file().
mid( sPrefixLength );
108 str +=
"<p><b>" + m.
tag() +
":</b> " + m.
message();
114 str +=
QString(
"<br>(<a href='%1'>%2</a>)" ).
arg( url, location );
129 return mMessageList.
first().message();
QString & remove(int position, int n)
void append(const T &value)
static const char * QGIS_DEV_VERSION
QgsErrorMessage represents single error message.
QString message(QgsErrorMessage::Format theFormat=QgsErrorMessage::Html) const
Full error messages description.
bool contains(QChar ch, Qt::CaseSensitivity cs) const
QString mid(int position, int n) const
void append(const QString &theMessage, const QString &theTag)
Append new error message.
QString summary() const
Short error description, usually the first error in chain, the real error.
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const