20#ifndef AKONADI_EXCEPTION_H
21#define AKONADI_EXCEPTION_H
23#include "akonadi_export.h"
25#include <QtCore/QByteArray>
35class AKONADI_EXPORT
Exception :
public std::exception
66 const char *
what()
const throw();
71 virtual QByteArray
type()
const throw();
78#define AKONADI_EXCEPTION_MAKE_TRIVIAL_INSTANCE( classname ) \
79class AKONADI_EXPORT classname : public Akonadi::Exception \
82 classname ( const char *what ) throw() : Akonadi::Exception( what ) {} \
83 classname ( const QByteArray &what ) throw() : Akonadi::Exception( what ) {} \
84 classname ( const QString &what ) throw() : Akonadi::Exception( what ) {} \
85 ~classname() throw(); \
86 QByteArray type() const throw(); \
89AKONADI_EXCEPTION_MAKE_TRIVIAL_INSTANCE( PayloadException );
91#undef AKONADI_EXCEPTION_MAKE_TRIVIAL_INSTANCE
virtual QByteArray type() const
Returns the type of this exception.
Exception(const char *what)
Creates a new exception with the error message what.
const char * what() const
Returns the error message associated with this exception.
FreeBusyManager::Singleton.
This file is part of the KDE documentation.
Documentation copyright © 1996-2026 The KDE developers.
Generated on
by
doxygen 1.15.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.