Wire Sysio Wire Sysion 1.0.0
|
Error code category and codes used by all processor types.
Classes | |
class | processor_category |
Category for processor errors. More... | |
Functions | |
lib::error_category const & | get_processor_category () |
Get a reference to a static copy of the processor error category. | |
lib::error_code | make_error_code (error::processor_errors e) |
Create an error code with the given value and the processor category. | |
close::status::value | to_ws (lib::error_code ec) |
Converts a processor error_code into a websocket close code. | |
Definition at line 66 of file base.hpp.
|
inline |
Definition at line 238 of file base.hpp.
|
inline |
Definition at line 244 of file base.hpp.
|
inline |
Looks up the appropriate WebSocket close code that should be sent after an error of this sort occurred.
If the error is not in the processor category close::status::blank is returned.
If the error isn't normally associated with reasons to close a connection (such as errors intended to be used internally or delivered to client applications, ex: invalid arguments) then close::status::internal_endpoint_error is returned.
Definition at line 261 of file base.hpp.