Properly support error conditions in the DataDecoder class
Add error tests
Merge pull request #274 from marco-c/fix_codec

Properly support error conditions in the DataDecoder class