Skip to content
Permalink
Browse files

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

  • Loading branch information
elpaso committed Nov 6, 2017
1 parent ee59abf commit cd23779e6fb116c55973ba7b8c75d72099e5e4bc
Showing with 13 additions and 0 deletions.
  1. +7 −0 python/core/qgserror.sip
  2. +6 −0 src/core/qgserror.h
@@ -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

};

/************************************************************************
@@ -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;

0 comments on commit cd23779

Please sign in to comment.
You can’t perform that action at this time.