Central Error Handling In NodeJS and TypeScript

テクノロジー



Today’s video is about error handling, and will be split into two parts.

The first are the principals behind error handling, these are applicable to other languages as well.

The second part is the example part, and is demonstrated using NodeJS.

Timestamps:
0:00 – Intro
0:20 – What will be in this video
0:50 – Why central error handling
1:18 – The goal of error handling
1:30 – First side of error handling – what do you do with the error
2:14 – The second side of error handling – what the app does with the error
2:30 – Programmer errors vs Operational errors
3:30 – Dealing with programmer errors, stateful vs stateless services
4:13 – Dealing with operational errors
4:34 – Sending the error to a logs platform
4:44 – NodeJS Code Example
5:12 – node-typescript-starter
5:33 – Creating your own error by extending Error
6:28 – Creating an error handler
7:15 – Creating a global error handler
8:40 – Creating multiple type of errors
9:05 – How to use the error handler in your app code
10:54 – Outro

If you like the video, like, comment, subscribe and share it with a friend/colleague.

node-type-script-starter repo:
https://github.com/yaircohendev/nodejs-typescript-starter

Checkout WebDevLog newsletter – a Web Development newsletter focused on core, evergreen concepts for Front-End and Fullstack Developers:
https://webdevlog.com/

Coralogix:
https://coralogix.com/

Comments

Copied title and URL