Skip to content

Commit

Permalink
[auth][bugfix] Add a getter for error list on qgsmigrate
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Nov 6, 2017
1 parent ee59abf commit cd23779
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions python/core/qgserror.sip
Expand Up @@ -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

};

/************************************************************************
Expand Down
6 changes: 6 additions & 0 deletions src/core/qgserror.h
Expand Up @@ -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;
Expand Down

0 comments on commit cd23779

Please sign in to comment.