CodeZettaInterview Hub

Node.js · Error Handling · Mid-Level · Best Practice

Should you catch uncaughtException and keep running?

Short Interview Answer

Generally no — state may be corrupt; log, alert, and exit for process supervisor restart.

Detailed Explanation

Domain is deprecated. Use proper rejection handling. Crash-only for unknown errors is safer.

Did you know this answer?