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 WebSocketExceptionDefined in src/http/include/icy/http/websocket.h:122
- Inherits
runtime_error
Public Methods
| Return | Name | Description |
|---|---|---|
WebSocketException inline | ||
ErrorCode | code const inline | |
bool | hasCloseStatus const inline | |
uint16_t | closeStatus 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() constDefined in src/http/include/icy/http/websocket.h:132
hasCloseStatus
const inline
inline bool hasCloseStatus() constDefined in src/http/include/icy/http/websocket.h:133
closeStatus
const inline
inline uint16_t closeStatus() constDefined in src/http/include/icy/http/websocket.h:134
Private Attributes
| Return | Name | Description |
|---|---|---|
ErrorCode | _code | |
uint16_t | _closeStatus |
_code
ErrorCode _codeType: ErrorCode
Defined in src/http/include/icy/http/websocket.h:137
_closeStatus
uint16_t _closeStatus