You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
Annotated controller API method by @UseFilters(NotFoundExceptionFilter) is ignored and used is a global exception handler. After global exception filter is commented out, NotFoundExceptionFilter works as expected.
What is the motivation / use case for changing the behavior?
I want to have global exception handler for any exception, and I want to override exception handler for just specific one controller for one exception type.
Environment
Nest version: 5.0.0
For Tooling issues:
- Node version: v9.4.0
- Platform: Mac
Others:
The text was updated successfully, but these errors were encountered:
I think to resolve that issue, filters array used in invokeCustomFilters method in exceptions-handler.ts class should be reversed while it is initialized in setCustomFilters method in the same class. I am not sure if this change won't cause any additional problems, please correct me if I am wrong.
I'm submitting a...
Current behavior
Annotated controller API method by @UseFilters(NotFoundExceptionFilter) is ignored and used is a global exception handler. After global exception filter is commented out, NotFoundExceptionFilter works as expected.
or
Expected behavior
Controller annotated exception filters should have higher priority than global exception filter.
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
I want to have global exception handler for any exception, and I want to override exception handler for just specific one controller for one exception type.
Environment
The text was updated successfully, but these errors were encountered: