Error Handling
Opened this issue · 0 comments
anandkumarpatel commented
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.