QGIS API Documentation  2.0.1-Dufour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Private Attributes | 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.
QString message () const
QString tag () const
QString file () const
QString function () const
int line () const

Private Attributes

QString mMessage
 Error messages.
QString mTag
 Short description.
QString mFile
 Detailed debug info.
QString mFunction
int mLine
Format mFormat

Detailed Description

QgsErrorMessage represents single error message.

Definition at line 29 of file qgserror.h.

Member Enumeration Documentation

Format.

Enumerator:
Text 
Html 

Definition at line 33 of file qgserror.h.

Constructor & Destructor Documentation

QgsErrorMessage::QgsErrorMessage ( )
inline

Definition at line 39 of file qgserror.h.

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

QString QgsErrorMessage::file ( ) const
inline

Definition at line 52 of file qgserror.h.

Referenced by QgsError::message().

QString QgsErrorMessage::function ( ) const
inline

Definition at line 53 of file qgserror.h.

Referenced by QgsError::message().

int QgsErrorMessage::line ( ) const
inline

Definition at line 54 of file qgserror.h.

Referenced by QgsError::message().

QString QgsErrorMessage::message ( ) const
inline

Definition at line 50 of file qgserror.h.

Referenced by QgsError::message().

QString QgsErrorMessage::tag ( ) const
inline

Definition at line 51 of file qgserror.h.

Referenced by QgsError::message().

Member Data Documentation

QString QgsErrorMessage::mFile
private

Detailed debug info.

Definition at line 64 of file qgserror.h.

Format QgsErrorMessage::mFormat
private

Definition at line 69 of file qgserror.h.

QString QgsErrorMessage::mFunction
private

Definition at line 65 of file qgserror.h.

int QgsErrorMessage::mLine
private

Definition at line 66 of file qgserror.h.

QString QgsErrorMessage::mMessage
private

Error messages.

Definition at line 58 of file qgserror.h.

QString QgsErrorMessage::mTag
private

Short description.

Definition at line 61 of file qgserror.h.


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