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

Client already connected exception. More...

#include <DeskflowException.h>

Inheritance diagram for DuplicateClientException:
Collaboration diagram for DuplicateClientException:

Public Member Functions

 DuplicateClientException (const std::string &name)
 ~DuplicateClientException () 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 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 already connected exception.

Thrown when a client attempting to connect is using the same name as a client that is already connected.

Constructor & Destructor Documentation

◆ DuplicateClientException()

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

◆ ~DuplicateClientException()

DuplicateClientException::~DuplicateClientException ( )
throw ( )
overridedefault

Member Function Documentation

◆ getName()

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

Get client's name.

◆ getWhat()

std::string DuplicateClientException::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: