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

Client not in map exception. More...

#include <DeskflowException.h>

Inheritance diagram for UnknownClientException:
Collaboration diagram for UnknownClientException:

Public Member Functions

 UnknownClientException (const std::string &name)
 ~UnknownClientException () 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.

accessors

virtual const std::string & getName () const noexcept
 Get the client's name.
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

Client not in map exception.

Thrown when a client attempting to connect is using a name that is unknown to the server.

Constructor & Destructor Documentation

◆ UnknownClientException()

UnknownClientException::UnknownClientException ( const std::string & name)
explicit

◆ ~UnknownClientException()

UnknownClientException::~UnknownClientException ( )
throw ( )
overridedefault

Member Function Documentation

◆ getName()

const std::string & UnknownClientException::getName ( ) const
virtualnoexcept

Get the client's name.

◆ getWhat()

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

Get a human readable string describing the exception.

Reimplemented from BaseException.


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