Qt 4.8
Functions
qsqlerror.cpp File Reference
#include "qsqlerror.h"
#include "qdebug.h"

Go to the source code of this file.

Functions

QDebug operator<< (QDebug dbg, const QSqlError &s)
 

Function Documentation

◆ operator<<()

QDebug operator<< ( QDebug  dbg,
const QSqlError s 
)

Definition at line 48 of file qsqlerror.cpp.

49 {
50  dbg.nospace() << "QSqlError(" << s.number() << ", " << s.driverText() <<
51  ", " << s.databaseText() << ')';
52  return dbg.space();
53 }
QString driverText() const
Returns the text of the error as reported by the driver.
Definition: qsqlerror.cpp:146
QDebug & nospace()
Clears the stream&#39;s internal flag that records whether the last character was a space and returns a r...
Definition: qdebug.h:92
QString databaseText() const
Returns the text of the error as reported by the database.
Definition: qsqlerror.cpp:169
QDebug & space()
Writes a space character to the debug stream and returns a reference to the stream.
Definition: qdebug.h:91
int number() const
Returns the database-specific error number, or -1 if it cannot be determined.
Definition: qsqlerror.cpp:214