---
title: "Error Handling"
description: "This example shows how to handle errors in different contexts: pages, plugins, components and middleware."
canonical_url: "https://nuxt.com/docs/4.x/examples/advanced/error-handling"
---
# Error Handling

> This example shows how to handle errors in different contexts: pages, plugins, components and middleware.

<code-explorer default-value="error.vue" path="examples/advanced/error-handling">



</code-explorer>

<browser src="https://error-handling.example.nuxt.space">



</browser>

<read-more to="https://nuxt.com/docs/4.x/getting-started/error-handling">



</read-more>

---

- [Source](https://github.com/nuxt/examples/tree/main/examples/advanced/error-handling)


## Sitemap

See the full [sitemap](https://nuxt.com/sitemap.md) for all pages.
