We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The below snippet is copied from a comment on the PR: #191 that was not resolved yet.
If I am not mistaken, we could create our own error, such as ApiError and throw these in our endpoints.
Then, it should be automatically passed to an error handler. So instead of doing
err.shouldReload = true; err.status = 400; next(err);
We could do something like: throw new ApiError() and then we handle it in an error handler.
throw new ApiError()
The text was updated successfully, but these errors were encountered:
NikolasHadjipanayi
No branches or pull requests
The below snippet is copied from a comment on the PR: #191 that was not resolved yet.
If I am not mistaken, we could create our own error, such as ApiError and throw these in our endpoints.
Then, it should be automatically passed to an error handler. So instead of doing
We could do something like:
throw new ApiError()
and then we handle it in an error handler.
The text was updated successfully, but these errors were encountered: