Deskflow 1.24.0.365
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
ScreenException.h
Go to the documentation of this file.
1/*
2 * Deskflow -- mouse and keyboard sharing utility
3 * SPDX-FileCopyrightText: (C) 2025 Deskflow Developers
4 * SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
5 * SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
6 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
7 */
8
9#pragma once
10
11#include "base/BaseException.h"
12
16class ScreenException : public BaseException
17{
19};
20
25{
26 using ScreenException::ScreenException;
27
28protected:
29 std::string getWhat() const throw() override;
30};
31
33
38{
39public:
44 explicit ScreenUnavailableException(double timeUntilRetry);
45 ~ScreenUnavailableException() throw() override = default;
46
48
49
51
54 double getRetryTime() const;
55
57
58protected:
59 std::string getWhat() const throw() override;
60
61private:
62 double m_timeUntilRetry;
63};
BaseException()
Use getWhat() as the result of what().
Definition BaseException.cpp:18
The ScreenException class, generic screen exception.
Definition ScreenException.h:17
ScreenOpenFailureException - Thrown when a screen cannot be opened or initialized.
Definition ScreenException.h:25
std::string getWhat() const override
Get a human readable string describing the exception.
Definition ScreenException.cpp:15
std::string getWhat() const override
Get a human readable string describing the exception.
Definition ScreenException.cpp:34
ScreenUnavailableException(double timeUntilRetry)
Definition ScreenException.cpp:24
~ScreenUnavailableException() override=default
double getRetryTime() const
Get retry time.
Definition ScreenException.cpp:29
Definition Config.h:28