24 #define QGS_ERROR_MESSAGE(message, tag) QgsErrorMessage(QString(message),QString(tag), QString(__FILE__), QString(__FUNCTION__), __LINE__) 48 QgsErrorMessage(
const QString & theMessage,
const QString & theTag = QString::null,
const QString & theFile = QString::null,
const QString & theFunction = QString::null,
int theLine = 0 );
50 QString
message()
const {
return mMessage; }
51 QString
tag()
const {
return mTag; }
52 QString
file()
const {
return mFile; }
53 QString
function()
const {
return mFunction; }
54 int line()
const {
return mLine; }
87 QgsError(
const QString & theMessage,
const QString & theTag );
93 void append(
const QString & theMessage,
const QString & theTag );
103 bool isEmpty()
const {
return mMessageList.isEmpty(); }
114 QString summary()
const;
117 void clear() { mMessageList.clear(); }
121 QList<QgsErrorMessage> mMessageList;
QgsErrorMessage represents single error message.
bool isEmpty() const
Test if any error is set.
QgsError is container for error messages (report).
void clear()
Clear error messages.