Back to Browse

Creating Custom Errors in JavaScript

5.5K views
Aug 24, 2022
13:05

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. Code from video: https://gist.github.com/prof3ssorSt3v3/ea48b9c4bfe1a0e750f1f7a2c1df98d0

Download

1 formats

Video Formats

360pmp417.0 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Creating Custom Errors in JavaScript | NatokHD