mirror of
https://github.com/gwdevhub/Daybreak.git
synced 2026-07-21 01:59:49 +00:00
25 lines
617 B
Plaintext
25 lines
617 B
Plaintext
@this.ChildContent
|
|
|
|
@inherits ErrorBoundary
|
|
@code {
|
|
[Inject]
|
|
public required IExceptionHandler ExceptionHandler { get; init; }
|
|
|
|
[Inject]
|
|
public required IViewManager ViewManager { get; init; }
|
|
|
|
protected override void OnAfterRender(bool firstRender)
|
|
{
|
|
base.OnAfterRender(firstRender);
|
|
}
|
|
|
|
protected override Task OnErrorAsync(Exception exception)
|
|
{
|
|
this.ExceptionHandler.HandleException(exception);
|
|
this.Recover();
|
|
this.ViewManager.ShowView<LaunchView>();
|
|
this.InvokeAsync(this.StateHasChanged);
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|