Generic transport related errors.
|
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
} |
|
◆ 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
169
172
174 timeout,
175
178
181};
@ operation_not_supported
Operation not supported.
@ operation_aborted
Operation aborted.
@ tls_error
Other TLS error.
@ 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
◆ get_category()
lib::error_category const & websocketpp::transport::error::get_category |
( |
| ) |
|
|
inline |
◆ 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}