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
[ ] Regression
When calling next with error in express middleware the error handler does not catch it.
Example:
some-file.js: class CustomError extends Error { constructor(errors, place, message) { super(message); this.errors = errors; } } function someMiddlleware(req, res, next) { return next(new CustomError(new Error('Some_error'))); }
error-handler.js @catch(CustomError) exports class CustomErrorFilter implements ExceptionFilter { catch(exception, response) { /// do some logic... } }
CustomErrorFilter should catch the error.
The text was updated successfully, but these errors were encountered:
#431 is that the same problem?
Sorry, something went wrong.
duplicate of #431
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
I'm submitting a...
[ ] Regression
Current behavior
When calling next with error in express middleware the error handler does not catch it.
Example:
some-file.js:
class CustomError extends Error {
constructor(errors, place, message) {
super(message);
this.errors = errors;
}
}
function someMiddlleware(req, res, next) {
return next(new CustomError(new Error('Some_error')));
}
error-handler.js
@catch(CustomError)
exports class CustomErrorFilter implements ExceptionFilter {
catch(exception, response) {
/// do some logic...
}
}
Expected behavior
CustomErrorFilter should catch the error.
The text was updated successfully, but these errors were encountered: