Akonadi
9 #include "akonadicore_export.h"
22 #pragma warning(disable : 4275) // we are exporting a subclass of an unexported class, MSVC complains
25 class ExceptionPrivate;
29 class AKONADICORE_EXPORT
Exception :
public std::exception
57 const char *what()
const noexcept
override;
65 std::unique_ptr<ExceptionPrivate> d;
71 #define AKONADI_EXCEPTION_MAKE_TRIVIAL_INSTANCE(classname) \
72 class AKONADICORE_EXPORT classname : public Akonadi::Exception \
75 explicit classname(const char *what) \
76 : Akonadi::Exception(what) \
79 explicit classname(const QByteArray &what) \
80 : Akonadi::Exception(what) \
83 explicit classname(const QString &what) \
84 : Akonadi::Exception(what) \
87 classname(classname &&) = default; \
88 ~classname() override; \
89 QByteArray type() const override; \
92 AKONADI_EXCEPTION_MAKE_TRIVIAL_INSTANCE(PayloadException);
94 #undef AKONADI_EXCEPTION_MAKE_TRIVIAL_INSTANCE
Base class for exceptions used by the Akonadi library.
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Oct 1 2023 04:01:48 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.