ThreadWeaver

exception.cpp
1/* -*- C++ -*-
2 Base class for exceptions in ThreadWeaver.
3
4 SPDX-FileCopyrightText: 2005-2013 Mirko Boehm <mirko@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.0-or-later
7*/
8
9#include "exception.h"
10
11namespace ThreadWeaver
12{
13Exception::Exception(const QString &message)
14 : std::runtime_error(message.toStdString())
15 , m_message(message)
16{
17}
18
19Exception::~Exception() throw()
20{
21}
22
23QString Exception::message() const
24{
25 return m_message;
26}
27
28JobAborted::JobAborted(const QString &message)
29 : Exception(message)
30{
31}
32
33JobFailed::JobFailed(const QString &message)
34 : Exception(message)
35{
36}
37
38AbortThread::AbortThread(const QString &message)
39 : Exception(message)
40{
41}
42
43}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 11:58:32 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.