bitwalker / bitwalker/exprotobuf

Improve error handling

Open
#88 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Elixir
Stars
482
Forks
68
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.