Nest.js exception filters provide a way to intercept and handle exceptions globally or on a per-controller basis.
How to Use Nest.js Exception Filters to Handle Errors
Unhandled exceptions can cause confusion and frustration. Clean them up with exception filters.