Changeset View
Changeset View
Standalone View
Standalone View
src/server/storage/dbexception.cpp
Show All 29 Lines | 29 | { | |||
---|---|---|---|---|---|
30 | mWhat += "\nSql error: " + query.lastError().text().toUtf8(); | 30 | mWhat += "\nSql error: " + query.lastError().text().toUtf8(); | ||
31 | mWhat += "\nQuery: " + query.lastQuery().toUtf8(); | 31 | mWhat += "\nQuery: " + query.lastQuery().toUtf8(); | ||
32 | } | 32 | } | ||
33 | 33 | | |||
34 | const char *DbException::type() const throw() | 34 | const char *DbException::type() const throw() | ||
35 | { | 35 | { | ||
36 | return "Database Exception"; | 36 | return "Database Exception"; | ||
37 | } | 37 | } | ||
38 | | ||||
39 | DbDeadlockException::DbDeadlockException(const QSqlQuery &query) | ||||
40 | : DbException(query, "Database deadlock, unsuccessful after multiple retries") | ||||
41 | { | ||||
42 | } |