Tag
errors
Published articles tagged errors.
Error handling in JavaScript
JavaScript has no compile step in the browser: syntax fails at parse time, everything else surfaces at runtime through throw and the Error hierarchy. try/catch/finally, the cause option, custom Error subclasses, and AggregateError cover sync code and Promise rejection paths.
Error handling with async/await in TypeScript
TypeScript narrows results when you separate success and failure with typed tuples or Result-like helpers, and it types catch clauses under useUnknownInCatchVariables. This page focuses on typing async error paths—not on try/catch mechanics.