# error boundary (límite de error (error boundary))

A safety net in your app that catches unexpected errors and shows a friendly message with “Try again”.

**Example:** For example, `app/error.tsx` and `app/global-error.tsx` are error boundaries your agent adds to every Next.js project from the first task.


---
Source: [Agentic Makers](https://agenticmakers.app/en/glossary/error-boundary) · License: CC BY 4.0
