Use std::system_error
eyalroz opened this issue · comments
C++ has had, for the last 10 years, a standard, cross-platform mechanism for representing system errors: <system_error>
. I believe you should use it instead of your own custom exceptions.
See also:
<system_error> categories and standard/system error codes
on StackOverflow.
Also referenced in #32
I will close this issue