jsocketpp 1.0
A cross-platform C++20 socket library.
Loading...
Searching...
No Matches

Exception types used in jsocketpp for error handling. More...

Collaboration diagram for Exception Classes:

Classes

class  jsocketpp::SocketException
 Represents socket-related errors in the jsocketpp library. More...
class  jsocketpp::SocketTimeoutException
 Exception class for socket operations that time out. More...

Functions

 jsocketpp::SocketException::SocketException (const std::string &message="SocketException")
 Constructs a SocketException with a custom error message and no associated error code.

Detailed Description

Exception types used in jsocketpp for error handling.

Function Documentation

◆ SocketException()

jsocketpp::SocketException::SocketException ( const std::string & message = "SocketException")
inlineexplicit

Constructs a SocketException with a custom error message and no associated error code.

This overload is typically used when the error does not correspond to a specific platform error code (e.g., logic errors, precondition failures, etc.), but still warrants raising a socket-specific exception.

Parameters
messageA human-readable description of the error context.
See also
SocketException(int, const std::string&)
getErrorCode()