The following members of class QSqlError are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
(obsolete) |
QSqlError(const QString &driverText, const QString &databaseText, QSqlError::ErrorType type, int number) |
(obsolete) int |
number() const |
(obsolete) void |
setDatabaseText(const QString &databaseText) |
(obsolete) void |
setDriverText(const QString &driverText) |
(obsolete) void |
setNumber(int number) |
(obsolete) void |
setType(QSqlError::ErrorType type) |
Constructs an error containing the driver error text driverText, the database-specific error text databaseText, the type type and the optional error number number.
Returns the database-specific error number, or -1 if it cannot be determined.
Returns 0 if the error code is not an integer.
Warning: Some databases use alphanumeric error codes, which makes number() unreliable if such a database is used.
Use nativeErrorCode() instead
See also setNumber() and nativeErrorCode().
Sets the database error text to the value of databaseText.
Use QSqlError(const QString &driverText, const QString &databaseText, ErrorType type, int number) instead
See also databaseText(), setDriverText(), and text().
Sets the driver error text to the value of driverText.
Use QSqlError(const QString &driverText, const QString &databaseText, ErrorType type, int number) instead
See also driverText(), setDatabaseText(), and text().
Sets the database-specific error number to number.
Use QSqlError(const QString &driverText, const QString &databaseText, ErrorType type, int number) instead
See also number().
Sets the error type to the value of type.
Use QSqlError(const QString &driverText, const QString &databaseText, ErrorType type, int number) instead
See also type().
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: