QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Public Types | Public Member Functions | List of all members
QgsErrorMessage Class Reference

QgsErrorMessage represents single error message. More...

#include <qgserror.h>

Public Types

enum  Format { Text, Html }
 Format. More...
 

Public Member Functions

 QgsErrorMessage ()
 
 QgsErrorMessage (const QString &theMessage, const QString &theTag=QString::null, const QString &theFile=QString::null, const QString &theFunction=QString::null, int theLine=0)
 Constructor. More...
 
QString file () const
 
QString function () const
 
int line () const
 
QString message () const
 
QString tag () const
 

Detailed Description

QgsErrorMessage represents single error message.

Definition at line 29 of file qgserror.h.

Member Enumeration Documentation

◆ Format

Format.

Enumerator
Text 
Html 

Definition at line 33 of file qgserror.h.

Constructor & Destructor Documentation

◆ QgsErrorMessage() [1/2]

QgsErrorMessage::QgsErrorMessage ( )
inline

Definition at line 39 of file qgserror.h.

◆ QgsErrorMessage() [2/2]

QgsErrorMessage::QgsErrorMessage ( const QString theMessage,
const QString theTag = QString::null,
const QString theFile = QString::null,
const QString theFunction = QString::null,
int  theLine = 0 
)

Constructor.

Parameters
theMessageerror message string
theTagerror label, for example GDAL, GDAL Provider, Raster layer
theFilethe file where error was created
theFunctionthe function where error was created
theLinethe line where error was created

Definition at line 25 of file qgserror.cpp.

Member Function Documentation

◆ file()

QString QgsErrorMessage::file ( ) const
inline

Definition at line 55 of file qgserror.h.

◆ function()

QString QgsErrorMessage::function ( ) const
inline

Definition at line 56 of file qgserror.h.

◆ line()

int QgsErrorMessage::line ( ) const
inline

Definition at line 57 of file qgserror.h.

◆ message()

QString QgsErrorMessage::message ( ) const
inline

Definition at line 53 of file qgserror.h.

◆ tag()

QString QgsErrorMessage::tag ( ) const
inline

Definition at line 54 of file qgserror.h.


The documentation for this class was generated from the following files: