30 lines
737 B
C++
30 lines
737 B
C++
/*
|
|
* 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
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "base/BaseException.h"
|
|
|
|
/**
|
|
* @brief MTException generic multithreading exception
|
|
*/
|
|
class MTException : public BaseException
|
|
{
|
|
using BaseException::BaseException;
|
|
};
|
|
|
|
/**
|
|
* @brief MTThreadUnavailableException - Thrown when a thread cannot be created.
|
|
*/
|
|
class MTThreadUnavailableException : public MTException
|
|
{
|
|
using MTException::MTException;
|
|
|
|
protected:
|
|
std::string getWhat() const throw() override;
|
|
};
|