NodeJS Essentials 10: Handling Errors

preview_player
Показать описание
In this tutorial, you'll learn about how the error first callback pattern works in NodeJS.

You may have come across error handling with JavaScript in previous lessons or other tutorials elsewhere and you'll probably know about the try catch block.

But in NodeJS, a lot of the code is asynchronous meaning that the errors generated can't be caught in the same sort of way.

In this tutorial on error handling in NodeJS, you'll learn about the error first pattern which is implemented in a lot of the Node core modules.

We'll see how this Node JS error handling pattern is implemented with the DNS and FS modules. Channel Handle @codebubb
Рекомендации по теме
Комментарии
Автор

Put a link p[lease with JS example for try catch, thanks!

valikonen