Http

ws::WebSocketException

WebSocketException

#include <websocket.h>

class WebSocketException

Defined in src/http/include/icy/http/websocket.h:121

Inherits
runtime_error

Public Methods

ReturnNameDescription
WebSocketException inline
ErrorCodecode const inline nodiscard
boolhasCloseStatus const inline nodiscard
uint16_tcloseStatus const inline nodiscard

WebSocketException

inline

inline WebSocketException(ErrorCode code, std::string message, uint16_t closeStatus = 0)

Defined in src/http/include/icy/http/websocket.h:124


code

const inline nodiscard

[[nodiscard]] inline ErrorCode code() const

Defined in src/http/include/icy/http/websocket.h:131


hasCloseStatus

const inline nodiscard

[[nodiscard]] inline bool hasCloseStatus() const

Defined in src/http/include/icy/http/websocket.h:132


closeStatus

const inline nodiscard

[[nodiscard]] inline uint16_t closeStatus() const

Defined in src/http/include/icy/http/websocket.h:133

Private Attributes

ReturnNameDescription
ErrorCode_code
uint16_t_closeStatus

_code

ErrorCode _code

Type: ErrorCode

Defined in src/http/include/icy/http/websocket.h:136


_closeStatus

uint16_t _closeStatus

Defined in src/http/include/icy/http/websocket.h:137