ErrorGuard
Since 0.1.0-alpha.24IzzyBlazor.ErrorGuard in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.31 assembly
and its doc comments.
Properties (8)
Titlestring?The title, in place of IzzyText's "Something went wrong".
Messagestring?The message under the title, in place of IzzyText's "This part of the page stopped working."
ShowDetailsbool = falseAdds the exception, message and stack, in a collapsed section. Off by default: set it from the environment (ShowDetails="@Environment.IsDevelopment()") so visitors never see it.
Classstring?Extra CSS classes on the wrapper of the error view.
ChildContentRenderFragment?ErrorContentRenderFragment<Exception>?MaximumErrorCountint = 100Events (1)
OnErrorEventCallback<Exception>Runs with the exception when what's inside throws, after it's logged; for a toast or your own logging.
Runs on static pages too, for what throws while the page renders on the server.