In Next.js 14+, when an error happens anywhere in the app, Next.js catches it and renders the Global-error.tsx component. This component receives the error object and a reset function. It shows a simple UI with the error message and a button to try again. When the user clicks retry, the reset function clears the error state, and the app UI reloads normally. This flow ensures users see a friendly message instead of a broken app. The execution table shows each step: error thrown, GlobalError renders, user retries, and app reloads. The variable tracker follows the error state and UI changes. Key moments clarify why GlobalError replaces the UI and how retry works. The visual quiz tests understanding of error state and UI transitions. This pattern helps handle root errors gracefully in Next.js apps.