Skip to content

Glossary: Next.js Basics

error.js

Also written: CafesError

A file that catches errors thrown while its folder's page is drawn and shows its own content instead. It must be a Client Component and receives `error` and `retry` props.

Where the book teaches it

Related terms

Error boundaryretryglobal-error.js