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

Generic transport related errors.

Classes

class  category
 

Enumerations

enum  value {
  general = 1 , pass_through , invalid_num_bytes , double_read ,
  operation_aborted , operation_not_supported , eof , tls_short_read ,
  timeout , action_after_shutdown , tls_error
}
 

Functions

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

Enumeration Type Documentation

◆ value

Enumerator
general 

Catch-all error for transport policy errors that don't fit in other categories

pass_through 

underlying transport pass through

invalid_num_bytes 

async_read_at_least call requested more bytes than buffer can store

double_read 

async_read called while another async_read was in progress

operation_aborted 

Operation aborted.

operation_not_supported 

Operation not supported.

eof 

End of file.

tls_short_read 

TLS short read.

timeout 

Timer expired.

action_after_shutdown 

read or write after shutdown

tls_error 

Other TLS error.

Definition at line 147 of file connection.hpp.

147 {
150 general = 1,
151
153 pass_through,
154
156 invalid_num_bytes,
157
160
163
166
168 eof,
169
172
174 timeout,
175
178
181};
@ operation_not_supported
Operation not supported.
@ operation_aborted
Operation aborted.
@ action_after_shutdown
read or write after shutdown
@ tls_short_read
TLS short read.
@ double_read
async_read called while another async_read was in progress

Function Documentation

◆ get_category()

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

Definition at line 219 of file connection.hpp.

219 {
220 static category instance;
221 return instance;
222}
Here is the caller graph for this function:

◆ make_error_code()

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

Definition at line 224 of file connection.hpp.

224 {
225 return lib::error_code(static_cast<int>(e), get_category());
226}
Here is the call graph for this function:
Here is the caller graph for this function: