Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing ErrorBoundary in ModuleInstance component #1814

Closed
PavelVsl opened this issue Nov 17, 2021 · 1 comment
Closed

Implementing ErrorBoundary in ModuleInstance component #1814

PavelVsl opened this issue Nov 17, 2021 · 1 comment

Comments

@PavelVsl
Copy link
Contributor

This helps to catch unhandled module exception on module instance level. Nice new NET6 feature.
sample module
image

@inherits ModuleBase

<button type="button" class="btn btn-primary" @onclick="OnClick">Throw exception </button>
@code {
    protected void OnClick()
    {
        throw new Exception("Simulated exception");
    }
}

output for users
image

output for host
image

@hishamco
Copy link
Contributor

I think this should be closed now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants