Changeset View
Changeset View
Standalone View
Standalone View
src/server/storage/dbexception.h
- This file was copied to src/server/storage/dbdeadlockcatcher.h.
Show All 31 Lines | |||||
32 | /** Exception for reporting SQL errors. */ | 32 | /** Exception for reporting SQL errors. */ | ||
33 | class DbException : public Exception | 33 | class DbException : public Exception | ||
34 | { | 34 | { | ||
35 | public: | 35 | public: | ||
36 | explicit DbException(const QSqlQuery &query, const char *what = nullptr); | 36 | explicit DbException(const QSqlQuery &query, const char *what = nullptr); | ||
37 | const char *type() const throw() override; | 37 | const char *type() const throw() override; | ||
38 | }; | 38 | }; | ||
39 | 39 | | |||
40 | class DbDeadlockException : public DbException | ||||
41 | { | ||||
42 | public: | ||||
43 | explicit DbDeadlockException(const QSqlQuery &query); | ||||
44 | }; | ||||
45 | | ||||
40 | } // namespace Server | 46 | } // namespace Server | ||
41 | } // namespace Akonadi | 47 | } // namespace Akonadi | ||
42 | 48 | | |||
43 | #endif // DBEXCEPTION_H | 49 | #endif // DBEXCEPTION_H |