QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
QgsError is container for error messages (report). More...
#include <qgserror.h>
Public Member Functions | |
QgsError () | |
QgsError (const QString &theMessage, const QString &theTag) | |
Constructor with single message. More... | |
void | append (const QString &theMessage, const QString &theTag) |
Append new error message. More... | |
void | append (const QgsErrorMessage &theMessage) |
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 theFormat=QgsErrorMessage::Html) const |
Full error messages description. 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.
|
inline |
Definition at line 84 of file qgserror.h.
Constructor with single message.
theMessage | error message |
theTag | short description, e.g. GDAL, Provider, Layer |
Definition at line 35 of file qgserror.cpp.
Append new error message.
theMessage | error message string |
theTag | error label, for example GDAL, GDAL Provider, Raster layer |
Definition at line 40 of file qgserror.cpp.
void QgsError::append | ( | const QgsErrorMessage & | theMessage | ) |
Append new error message.
theMessage | error message |
Definition at line 45 of file qgserror.cpp.
|
inline |
Clear error messages.
Definition at line 120 of file qgserror.h.
|
inline |
QString QgsError::message | ( | QgsErrorMessage::Format | theFormat = QgsErrorMessage::Html | ) | const |
Full error messages description.
theFormat | output format |
Definition at line 50 of file qgserror.cpp.
QString QgsError::summary | ( | ) | const |
Short error description, usually the first error in chain, the real error.
Definition at line 129 of file qgserror.cpp.