Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: throw system_error instead of runtime_error #6

Open
ecorm opened this issue Apr 7, 2021 · 0 comments
Open

Suggestion: throw system_error instead of runtime_error #6

ecorm opened this issue Apr 7, 2021 · 0 comments

Comments

@ecorm
Copy link

ecorm commented Apr 7, 2021

May I suggest that you throw a std::system_error instead of a std::runtime_error? That way, the std::system_error could encapsulate the std::error_code that would normally be returned via the alternate API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant