KD Reports API Documentation  2.2
Public Member Functions | List of all members
KDReports::ErrorDetails Class Reference

#include <KDReportsErrorDetails.h>

Public Member Functions

 ErrorDetails ()
 
 ErrorDetails (const ErrorDetails &other)
 
 ErrorDetails (const QString &message)
 
 ~ErrorDetails ()
 
int column () const
 
QString driverMessage () const
 
bool hasError () const
 
int line () const
 
QString message () const
 
ErrorDetailsoperator= (const ErrorDetails &other)
 
void setColumn (int column)
 
void setDriverMessage (const QString &message)
 
void setLine (int line)
 
void swap (ErrorDetails &other)
 

Detailed Description

The ErrorDetails class is used for transferring errors when parsing XML

Definition at line 25 of file KDReportsErrorDetails.h.

Constructor & Destructor Documentation

◆ ErrorDetails() [1/3]

KDReports::ErrorDetails::ErrorDetails ( )

Definition at line 15 of file KDReportsErrorDetails.cpp.

◆ ErrorDetails() [2/3]

KDReports::ErrorDetails::ErrorDetails ( const QString &  message)
explicit

Definition at line 20 of file KDReportsErrorDetails.cpp.

References message(), and setDriverMessage().

◆ ErrorDetails() [3/3]

KDReports::ErrorDetails::ErrorDetails ( const ErrorDetails other)

Definition at line 81 of file KDReportsErrorDetails.cpp.

◆ ~ErrorDetails()

KDReports::ErrorDetails::~ErrorDetails ( )

Definition at line 77 of file KDReportsErrorDetails.cpp.

Member Function Documentation

◆ column()

int KDReports::ErrorDetails::column ( ) const

Definition at line 44 of file KDReportsErrorDetails.cpp.

◆ driverMessage()

QString KDReports::ErrorDetails::driverMessage ( ) const
Returns
the lowlevel message, without any line or column numbers included.

Definition at line 54 of file KDReportsErrorDetails.cpp.

◆ hasError()

bool KDReports::ErrorDetails::hasError ( ) const

Definition at line 49 of file KDReportsErrorDetails.cpp.

◆ line()

int KDReports::ErrorDetails::line ( ) const

Definition at line 39 of file KDReportsErrorDetails.cpp.

◆ message()

QString KDReports::ErrorDetails::message ( ) const
Returns
a message including line and column number if available.

Definition at line 26 of file KDReportsErrorDetails.cpp.

Referenced by ErrorDetails().

◆ operator=()

KDReports::ErrorDetails & KDReports::ErrorDetails::operator= ( const ErrorDetails other)

Definition at line 86 of file KDReportsErrorDetails.cpp.

◆ setColumn()

void KDReports::ErrorDetails::setColumn ( int  column)

Definition at line 65 of file KDReportsErrorDetails.cpp.

Referenced by KDReports::Report::loadFromXML().

◆ setDriverMessage()

void KDReports::ErrorDetails::setDriverMessage ( const QString &  message)

Set the lowlevel message. This excludes line and/or column numbers.

Definition at line 71 of file KDReportsErrorDetails.cpp.

Referenced by ErrorDetails(), and KDReports::Report::loadFromXML().

◆ setLine()

void KDReports::ErrorDetails::setLine ( int  line)

Definition at line 59 of file KDReportsErrorDetails.cpp.

Referenced by KDReports::Report::loadFromXML().

◆ swap()

void KDReports::ErrorDetails::swap ( ErrorDetails other)

Definition at line 93 of file KDReportsErrorDetails.cpp.

References qSwap().

Referenced by qSwap().


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

© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-reports/
Generated by doxygen 1.9.1