Comments (2)
It cannot be guaranteed that the rich context found in the ExecutionContext
will exist inside the filter. In the case of 404s that Nest generally catches for you, there is no class or handler so you can't actually call those methods. Because of the uncertainty, we have to go with the safe option of the ArgumentHost
. If you'd like to add context of where the error happened, you can do that with where you throw the error, or possibly in an interceptor before the error makes its way to the filter.
from nest.
Thanks for the clarification
from nest.
Related Issues (20)
- ConfigService cache HOT 1
- Feat: onApplicationReady Hook
- Support for ESM yet? HOT 3
- gRPC client stream not working when interceptor is registered in NestJS
- Documentation - allow copy code snippets HOT 1
- Error: Cannot read properties of undefined (reading 'text') HOT 8
- A convenient `deprecated` tool for endpoints, following best practices 🥷 HOT 7
- Nestjs controller vs forwardRef issue HOT 1
- Provide an ergonomic way to set custom logger prefix HOT 4
- Redirect from POST call triggers a POST call instead of a GET call only if StatusCode is passed HOT 1
- TypeError: server.on is not a function HOT 2
- need Esm support HOT 1
- Separate libs from apps in nest-cli.json file. HOT 1
- Fastify adapter is not working HOT 1
- NestJS + SAM issue HOT 5
- Cannot read properties of undefined (reading 'get') in a test of service using Configservice in constructor HOT 1
- add a decorator for disabling the request body parser HOT 2
- microservices: multiple NATS clients created blocking application shutdown HOT 1
- [CLI] Revisit Bun support when creating new NestJS project HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nest.