---
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/examples/advanced/error-handling"
---
# Error Handling

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

::code-explorer{path="examples/advanced/error-handling" default-value="error.vue"}
::

::browser{src="https://error-handling.example.nuxt.space"}
::

::read-more{to="https://nuxt.com/docs/getting-started/error-handling"}
::

---

- [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.
