QGIS API Documentation
3.2.0-Bonn (bc43194)
|
QgsError is container for error messages (report). More...
#include <qgserror.h>
Public Member Functions | |
QgsError ()=default | |
Constructor for QgsError. More... | |
QgsError (const QString &message, const QString &tag) | |
Constructor with single message. More... | |
void | append (const QString &message, const QString &tag) |
Append new error message. More... | |
void | append (const QgsErrorMessage &message) |
Append new error message. More... | |
void | clear () |
Clear error messages. More... | |
bool | isEmpty () const |
Test if any error is set. More... | |
QString | message (QgsErrorMessage::Format format=QgsErrorMessage::Html) const |
Full error messages description. More... | |
QList< QgsErrorMessage > | messageList () const |
messageList return the list of current error messages More... | |
QString | summary () const |
Short error description, usually the first error in chain, the real error. More... | |
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.
Definition at line 80 of file qgserror.h.
|
default |
Constructor for QgsError.
QgsError::QgsError | ( | const QString & | message, |
const QString & | tag | ||
) |
Constructor with single message.
message | error message |
tag | short description, e.g. GDAL, Provider, Layer |
Definition at line 34 of file qgserror.cpp.
void QgsError::append | ( | const QString & | message, |
const QString & | tag | ||
) |
Append new error message.
message | error message string |
tag | error label, for example GDAL, GDAL Provider, Raster layer |
Definition at line 39 of file qgserror.cpp.
void QgsError::append | ( | const QgsErrorMessage & | message | ) |
Append new error message.
message | error message |
Definition at line 44 of file qgserror.cpp.
|
inline |
Clear error messages.
Definition at line 127 of file qgserror.h.
|
inline |
QString QgsError::message | ( | QgsErrorMessage::Format | format = QgsErrorMessage::Html | ) | const |
Full error messages description.
format | output format |
Definition at line 49 of file qgserror.cpp.
|
inline |
messageList return the list of current error messages
Definition at line 133 of file qgserror.h.
QString QgsError::summary | ( | ) | const |
Short error description, usually the first error in chain, the real error.
Definition at line 128 of file qgserror.cpp.