0

For example, asio::async_connect(), the documentation doesn't provide the possible error codes that could result.

It does provide a bunch of error_codes and a brief explanation, but is doesn't tell me which errors the async_connect function could send to the handler. Basically, I want to know if this error is something that can be recovered or not.

I'd rather not have to go through all the errors for every handler to work out whether it can be recovered or not. My reasoning is that sometimes, depending on the situation error_x might be recoverable, other times it's not.

NeomerArcana
  • 1,978
  • 3
  • 23
  • 50

1 Answers1

0

What Joachim said holds some truth (although these underlying calls are also not documented within Asio documentation).

There is only a very small set of generic errors like operation_aborted that always apply.

You could look at mapping error_code to error_condition which is more high-level and should reduce the decision domain, if only across different platforms.

sehe
  • 374,641
  • 47
  • 450
  • 633