Tag: try-catch
3 posts
-
JavaScript Error Handling: try/catch/finally, Custom Errors, Rejected Promises and Retries
Handle JavaScript errors with try/catch/finally, built-in and custom Error classes, rejected promises and async/await, retry with backoff and Result wrappers.
-
C++ Exceptions Done Right: Catch by Reference, Safety Guarantees, RAII and noexcept
Handle C++ exceptions safely: catch by const reference, basic/strong/nothrow guarantees, RAII cleanup, noexcept on moves, and when to use std::expected.
-
Node.js & JavaScript Error Handling Best Practices
Node.js error handling for production: operational vs programmer errors, the three ways errors propagate, cause and captureStackTrace, fire-and-forget promises, EventEmitter error events, unhandled rejections, Express error middleware, and retries.