Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
websocketpp::error::category Class Reference

#include <error.hpp>

Inheritance diagram for websocketpp::error::category:
Collaboration diagram for websocketpp::error::category:

Public Member Functions

 category ()
 
char const * name () const _WEBSOCKETPP_NOEXCEPT_TOKEN_
 
std::string message (int value) const
 

Detailed Description

Definition at line 150 of file error.hpp.

Constructor & Destructor Documentation

◆ category()

websocketpp::error::category::category ( )
inline

Definition at line 152 of file error.hpp.

152{}

Member Function Documentation

◆ message()

std::string websocketpp::error::category::message ( int value) const
inline

Definition at line 158 of file error.hpp.

158 {
159 switch(value) {
160 case error::general:
161 return "Generic error";
163 return "send queue full";
165 return "payload violation";
167 return "endpoint not secure";
169 return "endpoint not available";
171 return "invalid uri";
173 return "no outgoing message buffers";
175 return "no incoming message buffers";
177 return "invalid state";
179 return "Unable to extract close code";
181 return "Extracted close code is in an invalid range";
183 return "Extracted close code is in a reserved range";
185 return "Invalid UTF-8";
187 return "Invalid subprotocol";
189 return "Bad Connection";
190 case error::test:
191 return "Test Error";
193 return "Connection creation attempt failed";
195 return "Selected subprotocol was not requested by the client";
197 return "Feature not available on server endpoints";
199 return "Feature not available on client endpoints";
201 return "HTTP connection ended";
203 return "The opening handshake timed out";
205 return "The closing handshake timed out";
207 return "Invalid URI port";
209 return "Async Accept not listening";
211 return "Operation canceled";
212 case error::rejected:
213 return "Connection rejected";
215 return "Upgrade required";
217 return "Invalid version";
219 return "Unsupported version";
221 return "HTTP parse error";
223 return "Extension negotiation failed";
224 default:
225 return "Unknown";
226 }
227 }
@ general
Catch-all library error.
Definition error.hpp:47
@ unrequested_subprotocol
Selected subprotocol was not requested by the client.
Definition error.hpp:102
@ invalid_port
Invalid port in URI.
Definition error.hpp:120
@ client_only
Attempted to use a client specific feature on a server endpoint.
Definition error.hpp:105
@ http_connection_ended
HTTP connection ended.
Definition error.hpp:111
@ operation_canceled
The requested operation was canceled.
Definition error.hpp:127
@ no_outgoing_buffers
The endpoint is out of outgoing message buffers.
Definition error.hpp:68
@ http_parse_error
HTTP parse error.
Definition error.hpp:143
@ reserved_close_code
Close code is in a reserved range.
Definition error.hpp:80
@ con_creation_failed
Connection creation attempted failed.
Definition error.hpp:99
@ no_incoming_buffers
The endpoint is out of incoming message buffers.
Definition error.hpp:71
@ invalid_state
The connection was in the wrong state for this operation.
Definition error.hpp:74
@ extension_neg_failed
Extension negotiation failed.
Definition error.hpp:146
@ rejected
Connection rejected.
Definition error.hpp:130
@ unsupported_version
Unsupported WebSocket protocol version.
Definition error.hpp:140
@ invalid_utf8
Invalid UTF-8.
Definition error.hpp:86
@ invalid_close_code
Close code is invalid.
Definition error.hpp:83
@ server_only
Attempted to use a server specific feature on a client endpoint.
Definition error.hpp:108
@ endpoint_not_secure
Attempted to open a secure connection with an insecure endpoint.
Definition error.hpp:57
@ close_handshake_timeout
WebSocket close handshake timed out.
Definition error.hpp:117
@ invalid_subprotocol
Invalid subprotocol.
Definition error.hpp:89
@ bad_close_code
Unable to parse close code.
Definition error.hpp:77
@ open_handshake_timeout
WebSocket opening handshake timed out.
Definition error.hpp:114
@ invalid_version
Invalid WebSocket protocol version.
Definition error.hpp:137
@ send_queue_full
send attempted when endpoint write queue was full
Definition error.hpp:50
@ test
Unit testing utility error code.
Definition error.hpp:96
@ invalid_uri
An invalid uri was supplied.
Definition error.hpp:65

◆ name()

char const * websocketpp::error::category::name ( ) const
inline

Definition at line 154 of file error.hpp.

154 {
155 return "websocketpp";
156 }

The documentation for this class was generated from the following file: