HTTP module

ws::WebSocketException

A WebSocket error, carrying its error code and, where one applies, the close status code.

WebSocketException

#include <icy/http/websocket.h>

class WebSocketException

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

Inherits
runtime_error

Public Methods

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

WebSocketException

inline

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

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


code

const inline

inline ErrorCode code() const

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


hasCloseStatus

const inline

inline bool hasCloseStatus() const

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


closeStatus

const inline

inline uint16_t closeStatus() const

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

Private Attributes

ReturnNameDescription
ErrorCode_code
uint16_t_closeStatus

_code

ErrorCode _code

Type: ErrorCode

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


_closeStatus

uint16_t _closeStatus

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