deskflow/src/lib/mt/MTException.h

31 lines
705 B
C
Raw Normal View History

2012-06-10 16:50:54 +00:00
/*
* Deskflow -- mouse and keyboard sharing utility
* SPDX-FileCopyrightText: (C) 2025 Deskflow Developers
* SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
* SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
2012-06-10 16:50:54 +00:00
*/
#pragma once
2012-06-10 16:50:54 +00:00
#include "base/XBase.h"
2012-06-10 16:50:54 +00:00
/**
* @brief MTException generic multithreading exception
*/
class MTException : public XBase
{
using XBase::XBase;
};
/**
* @brief MTThreadUnavailableException - Thrown when a thread cannot be created.
*/
class MTThreadUnavailableException : public MTException
{
using MTException::MTException;
2012-06-10 16:50:54 +00:00
protected:
std::string getWhat() const throw() override;
};