Akonadi

dbexception.h
1/*
2 SPDX-FileCopyrightText: 2012 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "exception.h"
10
11class QSqlQuery;
12
13namespace Akonadi
14{
15namespace Server
16{
17/** Exception for reporting SQL errors. */
18class DbException : public Exception
19{
20public:
21 explicit DbException(const QSqlQuery &query, const char *what = nullptr);
22 const char *type() const throw() override;
23};
24
25class DbDeadlockException : public DbException
26{
27public:
28 explicit DbDeadlockException(const QSqlQuery &query);
29};
30
31} // namespace Server
32} // namespace Akonadi
Exception for reporting SQL errors.
Definition dbexception.h:19
Base class for exception used internally by the Akonadi server.
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:03:34 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.