Akonadi

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

KDE's Doxygen guidelines are available online.