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

Library level error codes.

Classes

class  category
 

Enumerations

enum  value {
  general = 1 , send_queue_full , payload_violation , endpoint_not_secure ,
  endpoint_unavailable , invalid_uri , no_outgoing_buffers , no_incoming_buffers ,
  invalid_state , bad_close_code , reserved_close_code , invalid_close_code ,
  invalid_utf8 , invalid_subprotocol , bad_connection , test ,
  con_creation_failed , unrequested_subprotocol , client_only , server_only ,
  http_connection_ended , open_handshake_timeout , close_handshake_timeout , invalid_port ,
  async_accept_not_listening , operation_canceled , rejected , upgrade_required ,
  invalid_version , unsupported_version , http_parse_error , extension_neg_failed
}
 

Functions

const lib::error_category & get_category ()
 
lib::error_code make_error_code (error::value e)
 

Enumeration Type Documentation

◆ value

Enumerator
general 

Catch-all library error.

send_queue_full 

send attempted when endpoint write queue was full

payload_violation 

Attempted an operation using a payload that was improperly formatted ex: invalid UTF8 encoding on a text message.

endpoint_not_secure 

Attempted to open a secure connection with an insecure endpoint.

endpoint_unavailable 

Attempted an operation that required an endpoint that is no longer available. This is usually because the endpoint went out of scope before a connection that it created.

invalid_uri 

An invalid uri was supplied.

no_outgoing_buffers 

The endpoint is out of outgoing message buffers.

no_incoming_buffers 

The endpoint is out of incoming message buffers.

invalid_state 

The connection was in the wrong state for this operation.

bad_close_code 

Unable to parse close code.

reserved_close_code 

Close code is in a reserved range.

invalid_close_code 

Close code is invalid.

invalid_utf8 

Invalid UTF-8.

invalid_subprotocol 

Invalid subprotocol.

bad_connection 

An operation was attempted on a connection that did not exist or was already deleted.

test 

Unit testing utility error code.

con_creation_failed 

Connection creation attempted failed.

unrequested_subprotocol 

Selected subprotocol was not requested by the client.

client_only 

Attempted to use a client specific feature on a server endpoint.

server_only 

Attempted to use a server specific feature on a client endpoint.

http_connection_ended 

HTTP connection ended.

open_handshake_timeout 

WebSocket opening handshake timed out.

close_handshake_timeout 

WebSocket close handshake timed out.

invalid_port 

Invalid port in URI.

async_accept_not_listening 

An async accept operation failed because the underlying transport has been requested to not listen for new connections anymore.

operation_canceled 

The requested operation was canceled.

rejected 

Connection rejected.

upgrade_required 

Upgrade Required. This happens if an HTTP request is made to a WebSocket++ server that doesn't implement an http handler

invalid_version 

Invalid WebSocket protocol version.

unsupported_version 

Unsupported WebSocket protocol version.

http_parse_error 

HTTP parse error.

extension_neg_failed 

Extension negotiation failed.

Definition at line 45 of file error.hpp.

45 {
47 general = 1,
48
51
55
58
63
66
69
72
75
78
81
84
87
90
94
96 test,
97
100
103
106
109
112
115
118
121
125
128
130 rejected,
131
135
138
141
144
147}; // enum value
@ 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

Function Documentation

◆ get_category()

const lib::error_category & websocketpp::error::get_category ( )
inline

Definition at line 230 of file error.hpp.

230 {
231 static category instance;
232 return instance;
233}
Here is the caller graph for this function:

◆ make_error_code()

lib::error_code websocketpp::error::make_error_code ( error::value e)
inline

Definition at line 235 of file error.hpp.

235 {
236 return lib::error_code(static_cast<int>(e), get_category());
237}
const lib::error_category & get_category()
Definition error.hpp:230
Here is the call graph for this function:
Here is the caller graph for this function: