11#ifndef QT_NO_DEBUG_STREAM
16 dbg <<
"QSqlError(" <<
s.nativeErrorCode() <<
", " <<
s.driverText()
17 <<
", " <<
s.databaseText() <<
')';
96 d->driverError = driverText;
97 d->databaseError = databaseText;
QSqlError::ErrorType errorType
The QSqlError class provides SQL database error information.
QSqlError(const QString &driverText=QString(), const QString &databaseText=QString(), ErrorType type=NoError, const QString &errorCode=QString())
Constructs an error containing the driver error text driverText, the database-specific error text dat...
bool operator!=(const QSqlError &other) const
Compare the other error's type() and nativeErrorCode() to this error and returns true if it is not eq...
QSqlError & operator=(const QSqlError &other)
Move-assigns other to this QSqlError instance.
ErrorType type() const
Returns the error type, or -1 if the type cannot be determined.
~QSqlError()
Destroys the object and frees any allocated resources.
QString nativeErrorCode() const
Returns the database-specific error code, or an empty string if it cannot be determined.
bool operator==(const QSqlError &other) const
Compare the other error's type() and nativeErrorCode() to this error and returns true,...
QString databaseText() const
Returns the text of the error as reported by the database.
QString text() const
This is a convenience function that returns databaseText() and driverText() concatenated into a singl...
QString driverText() const
Returns the text of the error as reported by the driver.
bool isValid() const
Returns true if an error is set, otherwise false.
ErrorType
This enum type describes the context in which the error occurred, e.g., a connection error,...
\macro QT_RESTRICTED_CAST_FROM_ASCII
bool endsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string ends with s; otherwise returns false.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
Combined button and popup list for selecting options.
#define QT_DEFINE_QESDP_SPECIALIZATION_DTOR(Class)
QDebug operator<<(QDebug dbg, const QSqlError &s)