r/learnjavascript • u/DaveOnEleven • Dec 06 '20
Javascript Error Handling | Handle Errors in Javascript | Try Catch Finally
https://youtu.be/blBoIyNhGvY1
u/DaveOnEleven Dec 06 '20
In this video we'll review Javascript Error Handling with Try, Catch, and Finally. We'll also look at JavaScript Error Constructor Types, console error messages, and how to create custom error constructors and messages.
✅ Quick Concepts outline:
Javascript Errors and Error Handling:
(0:13) Strict Mode
(1:20) Common JavaScript Error Types
(1:30) ReferenceError
(2:00) SyntaxError
(3:00) TypeError
(3:50) Using a Try Catch block
(4:15) The catchID parameter
(5:10) Using console.error() instead of console.log()
(5:40) console.warn()
(6:00) console.table()
(6:20) Error Object properties: name, message, stack
(7:20) Create a Custom Error
(8:20) throw keyword
(9:20) The generic error constructor
(10:20) Adding a finally to your Try Catch block
(10:45) An example of Try, Catch, Finally
If you enjoy this video, check out the ones that follow it in the playlist. I’ll continue to add more. Glad to answer your questions, too.
Javascript Error Handling | Handle Errors in Javascript | Try Catch Finally: https://youtu.be/blBoIyNhGvY
2
u/Lavanderisthebest Dec 07 '20
Very interesting!