</code> component:</p>
<pre class="code" language="razor">@inject HttpClient HttpClient

&lt;ErrorBoundary&gt;
    &lt;ChildContent&gt;
        &lt;button 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;
    &lt;/ChildContent&gt;
    &lt;ErrorContent&gt;An error has occurred.&lt;/ErrorContent&gt;
&lt;/ErrorBoundary&gt;

@code {
    public async Task Tr