[auth][bugfix] Add a getter for error list on qgsmigrate

This commit is contained in:
Alessandro Pasotti 2017-11-06 12:42:20 +01:00
parent ee59abf030
commit cd23779e6f
2 changed files with 13 additions and 0 deletions

View File

@ -123,6 +123,13 @@ class QgsError
Clear error messages
%End
const QList<QgsErrorMessage> messageList();
%Docstring
messageList return the list of current error messages
:return: current list of error messages
:rtype: list of QgsErrorMessage
%End
};
/************************************************************************

View File

@ -128,6 +128,12 @@ class CORE_EXPORT QgsError
//! Clear error messages
void clear() { mMessageList.clear(); }
/**
* \brief messageList return the list of current error messages
* \return current list of error messages
*/
const QList<QgsErrorMessage> messageList() { return mMessageList; }
private:
//! List of messages
QList<QgsErrorMessage> mMessageList;