jsocketpp 1.0
A cross-platform C++20 socket library.
Loading...
Searching...
No Matches
SocketTimeoutException.hpp
Go to the documentation of this file.
1
5
6#pragma once
7
8#include "SocketException.hpp"
9#include "common.hpp"
10
11namespace jsocketpp
12{
13
39{
40 public:
46 explicit SocketTimeoutException(const int errorCode = JSOCKETPP_TIMEOUT_CODE, std::string message = "")
47 : SocketException(errorCode, message.empty() ? SocketErrorMessageWrap(errorCode) : std::move(message))
48 {
49 }
50};
51
52} // namespace jsocketpp
Exception class for socket-related errors in jsocketpp.
SocketException(const int code, const std::string &message="SocketException")
Definition SocketException.hpp:60
SocketTimeoutException(const int errorCode=JSOCKETPP_TIMEOUT_CODE, std::string message="")
Construct a new SocketTimeoutException with the specified or default timeout code and message.
Definition SocketTimeoutException.hpp:46
Common platform and utility includes for jsocketpp.
A C++ socket library providing Java-style networking interfaces.
Definition BufferView.hpp:13
std::string SocketErrorMessageWrap(int error, bool gaiStrerror=false)
Returns a human-readable error message for a socket error code, with exception safety.
Definition common.cpp:50