-
Notifications
You must be signed in to change notification settings - Fork 163
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
introduce exceptions hierarchy #164
Conversation
Hi @itrofimow is it ready for review? |
Hi! As for now it lacks some tests |
I am not certain about what should be thrown instead of base I didn't find any test for throwing logic, thus i didn't add any |
@@ -38,7 +40,7 @@ void WireFormat::WriteAll(OutputStream& output, const void* buf, size_t len) { | |||
} | |||
|
|||
if (len) { | |||
throw std::runtime_error("Failed to write " + std::to_string(original_len) | |||
throw Error("Failed to write " + std::to_string(original_len) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what should be thrown here
Closes #145
Submitted on behalf of a third-party: Yandex N.V.