exprotobuf icon indicating copy to clipboard operation
exprotobuf copied to clipboard

Improve error handling

Open pallix opened this issue 7 years ago • 0 comments

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".

pallix avatar Feb 26 '18 14:02 pallix