on type="button" @onclick='TriggerHttpClientErrorAsync'&gt;Trigger HttpClient error&lt;/button&gt;
&lt;button type="button" @onclick="TriggerClientSideError"&gt;Trigger client side error&lt;/button&gt;

@code {
    public async Task TriggerHttpClientErrorAsync() =&gt; await HttpClient.GetAsync("https://blazorschool.com");
    public void TriggerClientSideError() =&gt; throw new Exception("Blazor School");
}</pre>
<p>To use an <code>ErrorBoundary</code> component to handle errors thrown by the <code>TriggerE