Skip to content
IzzyBlazor

Enter all results ↑ ↓ move Esc close

ErrorGuard

Since 0.1.0-alpha.24
Keeps the rest of a page working when one part of it throws.

IzzyBlazor.ErrorGuard in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.31 assembly and its doc comments.

Properties (8)

Titlestring?Added in 0.1.0-alpha.24

The title, in place of IzzyText's "Something went wrong".

Messagestring?Added in 0.1.0-alpha.24

The message under the title, in place of IzzyText's "This part of the page stopped working."

ShowDetailsbool = falseAdded in 0.1.0-alpha.24

Adds 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.

ResetOnNavigationbool = trueAdded in 0.1.0-alpha.24

Recovers when the address changes, so a guard around @Body clears on the next page. On by default.

Classstring?Added in 0.1.0-alpha.24

Extra CSS classes on the wrapper of the error view.

ChildContentRenderFragment?Added in 0.1.0-alpha.24
ErrorContentRenderFragment<Exception>?Added in 0.1.0-alpha.24
MaximumErrorCountint = 100Added in 0.1.0-alpha.24

Events (1)

OnErrorEventCallback<Exception>Added in 0.1.0-alpha.24

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.

Connection lost

Rejoining the server…