Akonadi
20class Exception :
public std::exception
23 explicit Exception(
const char *what) noexcept
28 explicit Exception(
const QByteArray &what) noexcept
33 explicit Exception(
const QString &what) noexcept
34 : mWhat(what.toUtf8())
38 Exception(
const Exception &) =
default;
39 Exception &operator=(
const Exception &) =
default;
41 ~Exception()
override =
default;
43 const char *what()
const noexcept override
45 return mWhat.constData();
48 virtual const char *type()
const noexcept
50 return "General Exception";
57#define AKONADI_EXCEPTION_MAKE_INSTANCE(classname) \
58 class classname : public Akonadi::Server::Exception \
61 classname(const char *what) noexcept \
62 : Akonadi::Server::Exception(what) \
65 classname(const QByteArray &what) noexcept \
66 : Akonadi::Server::Exception(what) \
69 classname(const QString &what) noexcept \
70 : Akonadi::Server::Exception(what) \
73 const char *type() const noexcept override \
75 return "" #classname; \
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:57 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.