[#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);
----

