When it fails
After this film you canhandle failure with error.tsx (retry) and not-found.tsx.
Exercise
Download the exercise (a zip). Unzip it, read exercise.md, then in exercise/ run npm install and node check.mjs. The checker runs a real build and says PASS or FAIL for each criterion.
Recall
Answer each one out loud before you open it.
Carol puts error.tsx in app/. When the price fails, what stays on screen, and why?
The root layout's header: error.tsx wraps the page in its folder, not the layout above it.
Why does Carol's "Try again" call retry() and not reset()?
retry asks the server again for the failed part; reset only re-renders what the browser already has, so a Server Component's error comes straight back.
A Server Function returns a wrong-value message; the pricing service throws. Which one reaches error.tsx?
The throw: the boundary catches what's thrown. The returned message just goes back to the form.