iostream transport errors
|
lib::error_category const & | get_category () |
| Get a reference to a static copy of the iostream transport error category.
|
|
lib::error_code | make_error_code (error::value e) |
| Get an error code with the given value and the iostream transport category.
|
|
◆ value
Enumerator |
---|
general | Catch-all error for transport policy errors that don't fit in other categories
|
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
|
output_stream_required | An operation that requires an output stream was attempted before setting one.
|
bad_stream | stream error
|
Definition at line 65 of file base.hpp.
65 {
68 general = 1,
69
71 invalid_num_bytes,
72
74 double_read,
75
79
82};
◆ get_category()
lib::error_category const & websocketpp::transport::iostream::error::get_category |
( |
| ) |
|
|
inline |
Definition at line 112 of file base.hpp.
112 {
114 return instance;
115}
iostream transport error category
◆ make_error_code()
lib::error_code websocketpp::transport::iostream::error::make_error_code |
( |
error::value | e | ) |
|
|
inline |
Definition at line 118 of file base.hpp.
118 {
119 return lib::error_code(static_cast<int>(e), get_category());
120}