---
title: "错误处理"
description: "此示例展示了如何在不同上下文中处理错误：页面、插件、组件和中间件。"
canonical_url: "https://nuxt.zhcndoc.com/docs/examples/advanced/error-handling"
---
# 错误处理

> 此示例展示了如何在不同上下文中处理错误：页面、插件、组件和中间件。

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

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

::read-more{to="https://nuxt.zhcndoc.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.zhcndoc.com/sitemap.md) for all pages.
