QGIS/python/core/auto_generated/qgserror.sip.in

138 lines
3.3 KiB
Plaintext
Raw Normal View History

2017-05-14 09:48:41 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgserror.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2013-04-08 18:25:44 +02:00
class QgsErrorMessage
{
2017-05-14 09:48:41 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
QgsErrorMessage represents single error message.
2017-05-14 09:48:41 +02:00
%End
2013-04-08 18:25:44 +02:00
%TypeHeaderCode
2017-05-14 09:48:41 +02:00
#include "qgserror.h"
2013-04-08 18:25:44 +02:00
%End
public:
enum Format
{
2017-05-14 09:48:41 +02:00
Text,
2013-04-08 18:25:44 +02:00
Html
};
QgsErrorMessage();
2017-11-11 15:22:19 +10:00
%Docstring
Constructor for QgsErrorMessage
%End
2013-04-08 18:25:44 +02:00
QgsErrorMessage( const QString &message, const QString &tag = QString(), const QString &file = QString(), const QString &function = QString(), int line = 0 );
2017-05-14 09:48:41 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param message: error message string
:param tag: error label, for example GDAL, GDAL Provider, Raster layer
:param file: the file where error was created
:param function: the function where error was created
:param line: the line where error was created
2017-05-14 09:48:41 +02:00
%End
2013-04-08 18:25:44 +02:00
QString message() const;
QString tag() const;
QString file() const;
QString function() const;
int line() const;
2017-05-14 09:48:41 +02:00
2013-04-08 18:25:44 +02:00
};
class QgsError
{
2017-05-14 09:48:41 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
QgsError is container for error messages (report). It may contain chain
(sort of traceback) of error messages (e.g. GDAL - provider - layer).
Higher level messages are appended at the end.
2017-05-14 09:48:41 +02:00
%End
2013-04-08 18:25:44 +02:00
%TypeHeaderCode
2017-05-14 09:48:41 +02:00
#include "qgserror.h"
2013-04-08 18:25:44 +02:00
%End
public:
QgsError();
2017-11-11 15:34:46 +10:00
%Docstring
Constructor for QgsError
%End
2013-04-08 18:25:44 +02:00
QgsError( const QString &message, const QString &tag );
2017-05-14 09:48:41 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor with single message.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param message: error message
:param tag: short description, e.g. GDAL, Provider, Layer
2017-05-14 09:48:41 +02:00
%End
2013-04-08 18:25:44 +02:00
void append( const QString &message, const QString &tag );
2017-05-14 09:48:41 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Append new error message.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param message: error message string
:param tag: error label, for example GDAL, GDAL Provider, Raster layer
2017-05-14 09:48:41 +02:00
%End
2013-04-08 18:25:44 +02:00
void append( const QgsErrorMessage &message );
2017-05-14 09:48:41 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Append new error message.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param message: error message
2017-05-14 09:48:41 +02:00
%End
2013-04-08 18:25:44 +02:00
bool isEmpty() const;
2017-05-14 09:48:41 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Test if any error is set.
:return: true if contains error
2017-05-14 09:48:41 +02:00
%End
2013-04-08 18:25:44 +02:00
QString message( QgsErrorMessage::Format format = QgsErrorMessage::Html ) const;
2017-05-14 09:48:41 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Full error messages description
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param format: output format
:return: error report
2017-05-14 09:48:41 +02:00
%End
2013-04-08 18:25:44 +02:00
QString summary() const;
2017-05-14 09:48:41 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Short error description, usually the first error in chain, the real error.
:return: error description
2017-05-14 09:48:41 +02:00
%End
2013-04-08 18:25:44 +02:00
void clear();
2017-05-14 09:48:41 +02:00
%Docstring
Clear error messages
%End
2017-11-06 16:49:33 +01:00
QList<QgsErrorMessage> messageList() const;
%Docstring
messageList return the list of current error messages
2017-12-15 10:36:55 -04:00
:return: current list of error messages
%End
2013-04-08 18:25:44 +02:00
};
2017-05-14 09:48:41 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgserror.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/