---
title: "Discussion on \"How To Handle Errors in Node.js & TypeScript Like a Senior Developer\" | Hashnode"
description: "Discussion on \"How To Handle Errors in Node.js & TypeScript Like a Senior Developer\". Learn error handling in Node.js and TypeScript using DRY and consistent logic like a senior developer."
url: "https://hashnode.com/posts/how-to-handle-errors-in-nodejs-typescript-like-a-senior-developer/658d2601239dc048bdc07f4b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How To Handle Errors in Node.js & TypeScript Like a Senior Developer](https://markmaksi.hashnode.dev/how-to-handle-errors-in-nodejs-typescript-like-a-senior-developer?utm_source=hashnode&utm_medium=feed)

Learn error handling in Node.js and TypeScript using DRY and consistent logic like a senior developer.

Dec 28, 2023 · 5 min read · markmaksi.hashnode.dev  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#error-handling](https://hashnode.com/tag/error-handling)
-   [#express](https://hashnode.com/tag/express)
-   [#expressjs](https://hashnode.com/tag/expressjs)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#abstract-class](https://hashnode.com/tag/abstract-class)

## Written by

[Mark Maksi](https://hashnode.com/@markmaksi)

@markmaksi · Italy

  
[View profile](https://hashnode.com/@markmaksi)

Software Engineer

Full Stack JS Engineer | Content Creator | I'm on a personal mission to provide high quality content on building web apps from code to production through my blog and my YouTube channel.

## Responses 2

Markdown supported · ⌘↵ to post

[Jyothi Kumar](https://hashnode.com/@Jyothikumar007)

[Feb 3, 2024](https://hashnode.com/posts/how-to-handle-errors-in-nodejs-typescript-like-a-senior-developer/658d2601239dc048bdc07f4b/comment/65be34bfebe76ad3f5158535)

I'm a freshman trying to code server and client in my projects in typescript, and this blog is very impressive @MarkMaksi sir! clear explanation of handling all kinds of errors, very informative!!

[Fadhili Njagi](https://hashnode.com/@fadhilinjagi)

[Jan 25, 2024](https://hashnode.com/posts/how-to-handle-errors-in-nodejs-typescript-like-a-senior-developer/658d2601239dc048bdc07f4b/comment/65b297cf3eff0b77751a872a)

I just use the npm package express-async-errors and I can throw whatever I want, wherever I want, as long as I'm confident my error handler middleware is robust.
