![]() |
jsocketpp 1.0
A cross-platform C++20 socket library.
|
Exception class for socket operations that time out. More...
#include <SocketTimeoutException.hpp>
Public Member Functions | |
SocketTimeoutException (const int errorCode=JSOCKETPP_TIMEOUT_CODE, std::string message="") | |
Construct a new SocketTimeoutException with the specified or default timeout code and message. | |
Public Member Functions inherited from jsocketpp::SocketException | |
SocketException (const int code, const std::string &message="SocketException") | |
int | getErrorCode () const noexcept |
~SocketException () override=default |
Exception class for socket operations that time out.
This exception is thrown when a socket operation (such as accept(), read(), or connect()) exceeds its allotted timeout period without completing. It provides a platform-appropriate error code and a human-readable message.
Inherits from SocketException and uses a default platform-specific error code:
The default message is generated using SocketErrorMessageWrap for the given timeout error code.
|
inlineexplicit |
Construct a new SocketTimeoutException with the specified or default timeout code and message.
errorCode | The platform-specific timeout code (default: JSOCKETPP_TIMEOUT_CODE). |
message | Optional error message. If omitted, it will be generated from the error code. |