 exceptionHandler {exceptionHandler.Error.StackTrace}");
        }
    }
}</pre>
<h3>Global error catching</h3>
<p>When an error hasn't been caught by any other scopes, this is the last fallback to catch it. To make changes, open your <strong>Pages/_Host.cshtml</strong> file and locate the following element:</p>
<pre class="code" language="html">&lt;div id="blazor-error-ui"&gt;
    &lt;environment include="Staging,Production"&gt;
        An error has occurred. This application may no longer respond until re