mirror of
https://github.com/PacktPublishing/Web-Development-with-Blazor-Second-Edition.git
synced 2025-12-06 05:32:03 +01:00
14 lines
256 B
Plaintext
14 lines
256 B
Plaintext
|
|
@page "/errorboundarytest"
|
||
|
|
<ErrorBoundary Context=ex>
|
||
|
|
<ChildContent>
|
||
|
|
<p>@(1/zero)</p>
|
||
|
|
</ChildContent>
|
||
|
|
<ErrorContent>
|
||
|
|
An error occured
|
||
|
|
@ex.Message
|
||
|
|
</ErrorContent>
|
||
|
|
</ErrorBoundary>
|
||
|
|
@code {
|
||
|
|
int zero = 0;
|
||
|
|
}
|