CodeZettaInterview Hub

NestJS · Exception Filters · Mid-Level · Concept

Order of filters and @Catch specificity?

Short Interview Answer

More specific @Catch(Type) preferred over broad @Catch(); registration order matters for globals.

Detailed Explanation

Don't register overlapping filters that fight. Document the hierarchy.

Did you know this answer?