Город МОСКОВСКИЙ
00:08:38

MN - 3-2 Handling Client-Side Errors with NuxtErrorBoundary

Аватар
Цифровой бомжара
Просмотры:
10
Дата загрузки:
05.01.2025 17:39
Длительность:
00:08:38
Категория:
Обучение

Описание

In this lesson, we look at how we can use the NuxtErrorBoundary component to elegantly handle client-side errors. By isolating errors to specific parts of our app, we’re able to have better error handling and error messages than a generic error page would allow.

We’ll look at how errors are created (and thrown) within Nuxt, how we can resolve these client-side errors, and how to show our own custom error messages.

NuxtErrorBoundary: https://nuxt.com/docs/api/components/nuxt-error-boundary

createError: https://nuxt.com/docs/api/utils/create-error

source: git/commit/5daf529b79e1ee5254053fb7a72d5762783cd485

Рекомендуемые видео