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

Error Handling #1836

Open
anandkumarpatel opened this issue Dec 7, 2016 · 0 comments
Open

Error Handling #1836

anandkumarpatel opened this issue Dec 7, 2016 · 0 comments

Comments

@anandkumarpatel
Copy link
Contributor

I think we should move from BOOM to Class errors.

why? We use promises so with class errors we can do .catch easier

also have all find functions throw if not found.

  • maybe make all common errors in base model so all the models have NotFound, IncorrectState ...etc

also need a Class to BOOM converter for frontend purposes.

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