In this lesson we will talk about error and exceptions in Node as well as in Express.
We will talk about sync errors as well as asynchronous errors.
We will demonstrate exceptions in async types like Promises, EventEmitter and Error first callback and we will learn how to deal with exceptions with those async patterns.
While covering how to deal with exceptions on Promises we will also demonstrate handling those exceptions on promises using the async-await.
We will show what happens on your Express application when you are not catching exceptions and we will also demonstrate best practices and using error middlewares in Express.
We will learn how to run our node server using process manager - pm2.
We will demonstrate using winston to log our exceptions.
The full article and code examples are in this link:
https://www.academeez.com/courses/exp...
#expressjs
0:00 What we will cover
2:44 How to catch sync exceptions
10:59 Exceptions on Promise
21:44 Exceptions on Error first callback
30:44 Exceptions with EventEmitter
36:18 What happens to the NodeJS process on uncaught exception
47:00 How Express is dealing with uncaught exception
1:08:55 Academeez error middleware
1:23:48 Process exceptions events
1:38:38 Summary uncaught exception in node and in express
1:41:24 Exception journey
1:44:50 Dealing with exceptions
1:54:49 Exceptions best practices
2:37:20 Using Process Manager PM2
2:51:54 Summary
Watch video Express error handling online without registration, duration hours minute second in high quality. This video was added by user academeez 27 April 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 165 once and liked it 7 people.