Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error handling #88

Open
pallix opened this issue Feb 26, 2018 · 0 comments
Open

Improve error handling #88

pallix opened this issue Feb 26, 2018 · 0 comments

Comments

@pallix
Copy link
Contributor

pallix commented Feb 26, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant