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.
I think we should move from BOOM to Class errors.
why? We use promises so with class errors we can do
.catcheasieralso have all find functions throw if not found.
also need a Class to BOOM converter for frontend purposes.