Learn JavaScript

Lesson 3 of 9 · Error Handling: throw, try, catch, finally, and Reading a Stack Trace

Module 10 · Error Handling: throw, try, catch, finally, and Reading a Stack Trace

Full Programs With Errors: a Parser, a Retry, Validation, Cleanup, an Error Table and a Cause Chain

Free with an accountReading

Mitu has read the pieces. She knows throw, catch and finally, the built-in kinds and her own classes. What she does not have yet is a feel for whole programs. Where does the try go in a parser? What does a retry wrapper catch, and what does it let through? How does a server turn errors into a table of codes without showing users its insides?

Checking what this lesson needs for you…

What is inside Full Programs With Errors: a Parser, a Retry, Validation, Cleanup, an Error Table and a Cause Chain

  1. Six shapes that keep coming back