![]() |
Deskflow 1.24.0.365
Keyboard and mouse sharing utility
|
Socket bad address exception. More...
#include <SocketException.h>


Public Types | |
| enum class | SocketError { Unknown , NotFound , NoAddress , Unsupported , BadPort } |
| Failure codes. More... | |
Public Member Functions | |
| SocketAddressException (SocketError, const std::string &hostname, int port) noexcept | |
| ~SocketAddressException () 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 | |
| SocketError | getError () const noexcept |
| Get the error code. | |
| std::string | getHostname () const noexcept |
| Get the hostname. | |
| int | getPort () const noexcept |
| Get the port. | |
| 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. | |
Socket bad address exception.
Thrown when attempting to create an invalid network address.
|
strong |
|
noexcept |
|
overridedefault | ||||||||||||
|
noexcept |
Get the error code.
|
noexcept |
Get the hostname.
|
noexcept |
Get the port.
|
overrideprotectedvirtual | ||||||||||||
Get a human readable string describing the exception.
Reimplemented from BaseException.