Creating Custom Errors in JavaScript

preview_player
Показать описание
Did you know that you can create your own custom Error objects in JavaScript?
This can be accomplished with both the older ES5 standard syntax and the newer JS Class syntax.
This video walks through building and handling errors with both approaches and a practical example of a custom Network Error.

Рекомендации по теме
Комментарии
Автор

Very good quality of information! Thanks

justfair
Автор

clean and masterful presentation, bravo

gfilippou
Автор

Ok, this is extremely useful. Thanks!

naraksama
Автор

I 100% follow what u do in this video, however only CORS is shown in the console...
But luckily this problem is solved now if I use live server.

leeeric
Автор

Thanks for this, I can think of a few places I can use this. 👍🏻

nChauhan
Автор

Great video. I wonder, if there was a purpose to assign class to variable instead of doing it in more common way like "class NetworkError extends Error {}", thanks?

rmnkot
Автор

I'm not shure that I understant the part at 3:27 correctly. Invoking the SteveError-Function with the new-operator seems obsolete since the function returns an object anyway.

mZZaik
Автор

Sir how many more lessons (vedioes ) are there in this series ??

skandaedits
Автор

you should be a programmer when you grow up

whatthefunction
welcome to shbcf.ru