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