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 reporting and standardise assertions. #5

Open
4 tasks
luk707 opened this issue Jul 15, 2021 · 0 comments
Open
4 tasks

Improve error reporting and standardise assertions. #5

luk707 opened this issue Jul 15, 2021 · 0 comments

Comments

@luk707
Copy link
Owner

luk707 commented Jul 15, 2021

Currently errors thrown from Funxion are just strings. It would make sense to create more specific error classes that inherit Error and provide more useful information from the user. This will also provider an API for users to make assertions on when validating user provided expressions.

AC

  • Outline required error classes
  • Implement error classes
  • Document errors and provide validation assertion examples
  • Add tests to ensure errors are raised as expected and stable to rely upon
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