Deskflow 1.24.0.365
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
ScreenUnavailableException Class Reference

Screen unavailable exception. More...

#include <ScreenException.h>

Inheritance diagram for ScreenUnavailableException:
Collaboration diagram for ScreenUnavailableException:

Public Member Functions

 ScreenUnavailableException (double timeUntilRetry)
 ~ScreenUnavailableException () override throw () =default
Public Member Functions inherited from BaseException
 BaseException ()
 Use getWhat() as the result of what().
 BaseException (const std::string &msg)
 Use msg as the result of what().
 ~BaseException () override throw () =default
const char * what () const override throw ()
 Reason for exception.

manipulators

double getRetryTime () const
 Get retry time.
std::string getWhat () const override throw ()
 Get a human readable string describing the exception.

Additional Inherited Members

Protected Member Functions inherited from BaseException
virtual std::string format (const char *id, const char *defaultFormat,...) const noexcept
 Format a string.

Detailed Description

Screen unavailable exception.

Thrown when a screen cannot be opened or initialized but retrying later may be successful.

Constructor & Destructor Documentation

◆ ScreenUnavailableException()

ScreenUnavailableException::ScreenUnavailableException ( double timeUntilRetry)
explicit

timeUntilRetry is the suggested time the caller should wait until trying to open the screen again.

◆ ~ScreenUnavailableException()

ScreenUnavailableException::~ScreenUnavailableException ( )
throw ( )
overridedefault

Member Function Documentation

◆ getRetryTime()

double ScreenUnavailableException::getRetryTime ( ) const

Get retry time.

Returns the suggested time to wait until retrying to open the screen.

◆ getWhat()

std::string ScreenUnavailableException::getWhat ( ) const
throw ( )
overrideprotectedvirtual

Get a human readable string describing the exception.

Reimplemented from ScreenOpenFailureException.


The documentation for this class was generated from the following files: