exprotobuf
exprotobuf copied to clipboard
Improve error handling
When an invalid binary message is passed to the decoder, at least three different errors are thrown by the library (depending of the message):
- MatchError
- FunctionClauseError
- CaseClauseError
They all leak internal details of the library and should be catch by the lib. Only one error should be necessary, specific to the lib, for example "DecodeError".