heed icon indicating copy to clipboard operation
heed copied to clipboard

Support custom encoding/decoding errors

Open Kerollmops opened this issue 3 years ago • 1 comments

It would be better and easier to debug a program if the BytesEncoding and BytesDecoding traits could return any error type.

To do so we need to modify the Error enum and more specifically the Encoding and Decoding variants to wrap a Box<dyn Error>.

Kerollmops avatar Dec 29 '20 13:12 Kerollmops

funny, I spent 3 hours debugging an error caused by just that, where a serializing error occured in a SerdeJson...

MarinPostma avatar Dec 30 '20 23:12 MarinPostma