以下成員源於類 QSqlError 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(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.
警告: Some databases use alphanumeric error codes, which makes number() unreliable if such a database is used.
使用 nativeErrorCode () 代替
另請參閱 setNumber () 和 nativeErrorCode ().
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
Sets the database error text to the value of databaseText .
使用 QSqlError (const QString & driverText , const QString & databaseText , ErrorType type, int number) instead
另請參閱 databaseText (), setDriverText (),和 text ().
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
Sets the driver error text to the value of driverText .
使用 QSqlError (const QString & driverText , const QString & databaseText , ErrorType type, int number) instead
另請參閱 driverText (), setDatabaseText (),和 text ().
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
Sets the database-specific error number to number .
使用 QSqlError (const QString & driverText , const QString & databaseText , ErrorType type, int number) instead
另請參閱 number ().
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
Sets the error type to the value of type .
使用 QSqlError (const QString & driverText , const QString & databaseText , ErrorType type, int number) instead
另請參閱 type ().