QGIS API Documentation
2.6.0-Brighton
|
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. | |
void | append (const QString &theMessage, const QString &theTag) |
Append new error message. | |
void | append (const QgsErrorMessage &theMessage) |
Append new error message. | |
bool | isEmpty () const |
Test if any error is set. | |
QString | message (QgsErrorMessage::Format theFormat=QgsErrorMessage::Html) const |
Full error messages description. | |
QString | summary () const |
Short error descriprion, usually the first error in chain, the real error. | |
void | clear () |
Clear error messages. |
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.
|
inline |
QgsError::QgsError | ( | const QString & | theMessage, |
const QString & | theTag | ||
) |
Constructor with single message.
theMessage | error message |
theTag | short description, e.g. GDAL, Provider, Layer |
void QgsError::append | ( | const QString & | theMessage, |
const QString & | theTag | ||
) |
Append new error message.
theMessage | error message string |
theTag | error label, for example GDAL, GDAL Provider, Raster layer |
void QgsError::append | ( | const QgsErrorMessage & | theMessage | ) |
Append new error message.
theMessage | error message |
|
inline |
Clear error messages.
|
inline |
Test if any error is set.
QString QgsError::message | ( | QgsErrorMessage::Format | theFormat = QgsErrorMessage::Html | ) | const |
Full error messages description.
theFormat | output format |
QString QgsError::summary | ( | ) | const |
Short error descriprion, usually the first error in chain, the real error.