kafka-protocol-rs icon indicating copy to clipboard operation
kafka-protocol-rs copied to clipboard

Error handling

Open tychedelia opened this issue 3 years ago • 2 comments

Error handling is a bit of a mess right now. We emit two different serde errors with very little context, that also don't impl std::error::Error which makes them hard to interact with.

tychedelia avatar Nov 26 '22 20:11 tychedelia

is there a chance we could switch to thiserror with structured errors?

michaelbeaumont avatar Feb 28 '25 19:02 michaelbeaumont

It was a while ago but when investigating how to do errors for this library I came to the conclusion that there was no value in using structured errors because all errors will be handled in the same way anyway. Are there any examples you have of error cases that require different handling?

rukai avatar Feb 28 '25 22:02 rukai