Akonadi

rds/exception.h
1/***************************************************************************
2 * SPDX-FileCopyrightText: 2010 Marc Mutz <mutz@kde.org> *
3 * *
4 * SPDX-License-Identifier: LGPL-2.0-or-later *
5 ***************************************************************************/
6#pragma once
7
8#include <QString>
9#include <stdexcept>
10
11template<typename Ex>
12class Exception : Ex
13{
14public:
15 explicit Exception(const QString &message)
16 : Ex(message.toStdString())
17 {
18 }
19
20 ~Exception() throw() override
21 {
22 }
23};
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.