---
template: Example
# Error Handling
This example shows how to handle errors in different contexts: pages, plugins, components and middleware.
::alert{type=info icon=👉}
Learn more about [error handling](/docs/usage/error-handling).
::
::sandbox{repo="nuxt/framework" branch="main" dir="examples/app/error-handling" file="app.vue"}