23 #include "qgis_core.h"
26 #define QGS_ERROR_MESSAGE(message, tag) QgsErrorMessage(QString(message),QString(tag), QString(__FILE__), QString(__FUNCTION__), __LINE__)
53 QgsErrorMessage(
const QString &message,
const QString &tag = QString(),
const QString &file = QString(),
const QString &
function = QString(),
int line = 0 );
55 QString
message()
const {
return mMessage; }
56 QString
tag()
const {
return mTag; }
57 QString
file()
const {
return mFile; }
58 QString
function()
const {
return mFunction; }
59 int line()
const {
return mLine; }
92 QgsError(
const QString &message,
const QString &tag );
99 void append(
const QString &message,
const QString &tag );
111 bool isEmpty()
const {
return mMessageList.isEmpty(); }
124 QString summary()
const;
127 void clear() { mMessageList.clear(); }
133 QList<QgsErrorMessage>
messageList()
const {
return mMessageList; }
137 SIP_PYOBJECT __repr__();
140 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
146 QList<QgsErrorMessage> mMessageList;