lientWrapper BlazorSchoolHttpClientWrapper
@implements IDisposable

&lt;h3&gt;HandlingHttpErrorsByHttpClientWrapper&lt;/h3&gt;
&lt;button @onclick="TriggerHttpErrorAsync"&gt;Trigger HTTP Error&lt;/button&gt;

@foreach (var exception in ExceptionRecorderService.Exceptions)
{
    &lt;div&gt;@exception.Message&lt;/div&gt;
}

@code {
    protected override void OnInitialized()
    {
        ExceptionRecorderService.Exceptions.CollectionChanged += RefreshUI;
    }

    public async Task TriggerHttpErrorAsync()
 