mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-12 00:06:43 -04:00
[auth][bugfix] Add a getter for error list on qgsmigrate
This commit is contained in:
parent
ee59abf030
commit
cd23779e6f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user