\r\n\u003C/template>\r\n```\r\n\r\nPage template:\r\n```\r\n\u003Ctemplate>\r\n \u003CNuxtLayout name=\"client\">\r\n Template:\r\n \u003C/NuxtLayout>\r\n\u003C/template>\r\n```\r\n",[3114,3115],{"name":3045,"color":3046},{"name":3021,"color":3022},22379,"Using createError with useAsyncData renders the error beneath the rest of the content","2023-07-28T18:16:08Z","https://github.com/nuxt/nuxt/issues/22379",0.66504574,{"description":3122,"labels":3123,"number":3126,"owner":3024,"repository":3024,"state":3051,"title":3127,"updated_at":3128,"url":3129,"score":3130},"Inspired by the solution posted in #429, I am looking to add error handling for some axios calls.\r\n\r\nThe code in that solution only throws errors in the browser, so I would like to instead throw a regular nuxt error page. However, the only way I know to do this is using the `context.error()` function inside asyncData or fetch.\r\n\r\nHow can I throw an error inside a plugin? Is there a way to get the global context or error handler?\r\n\n\n\u003C!--cmty-->\u003C!--cmty_prevent_hook-->\n\u003Cdiv align=\"right\">\u003Csub>\u003Cem>This question is available on \u003Ca href=\"https://nuxtjs.cmty.io\">Nuxt.js\u003C/a> community (\u003Ca href=\"https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c482\">#c482\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[3124,3125],{"name":3092,"color":3093},{"name":3063,"color":3064},555,"How to throw an error outside asyncData and fetch.","2023-01-18T15:39:31Z","https://github.com/nuxt/nuxt/issues/555",0.6662034,["Reactive",3132],{},["Set"],["ShallowReactive",3135],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fajrIJ8d_QLaNqRokDshAmgu0Au0MRnovj_pL6QuL_dA":-1},"/nuxt/nuxt/19625"]