mirror of
https://github.com/boostorg/cobalt.git
synced 2026-01-19 16:12:15 +00:00
23 lines
397 B
Plaintext
23 lines
397 B
Plaintext
[#error]
|
|
== cobalt/error.hpp
|
|
|
|
In order to make errors easier to manage, cobalt provides an `error_category` to be used with
|
|
`boost::system::error_code`.
|
|
|
|
[source,cpp]
|
|
----
|
|
enum class error
|
|
{
|
|
moved_from,
|
|
detached,
|
|
completed_unexpected,
|
|
wait_not_ready,
|
|
already_awaited,
|
|
allocation_failed
|
|
};
|
|
|
|
system::error_category & cobalt_category();
|
|
system::error_code make_error_code(error e);
|
|
----
|
|
|