|  | Home · Overviews · Examples

# QSqlError Class Reference
[com.trolltech.qt.sql module]

The `QSqlError` class provides SQL database error information. More...

## Detailed Description

The `QSqlError` class provides SQL database error information.

A `QSqlError` object can provide database-specific error data, including the `driverText` and `databaseText` messages (or both concatenated together as `text`), and the error `number` and `type`. The functions all have setters so that you can create and return `QSqlError` objects from your own classes, for example from your own SQL drivers.

See also `QSqlDatabase::lastError` and `QSqlQuery::lastError`.