JavaScript Error Handling
Plans from $25/month

This lesson is for members. Join us?

Subscribe now to get instant access to this course, plus a full library of Vue.js courses tailored to the plan you choose.

JavaScript Exceptions, Errors, and Try Catch

In this lesson, learn the fundamental building blocks of error handling: error objects and try/catch blocks. Error objects are structures that represent a program error. They contain information like: a stacktrace to help you find what caused the error, and an error message with more information. By default, thrown errors stop script execution dead in it’s tracks but try/catch blocks allow to “catch” thrown errors and handle them more gracefully.

Links