Web-Development-with-Blazor.../Chapter12/MyBlog/Components/Pages/ThrowException.razor

3 lines
129 B
Plaintext
Raw Permalink Normal View History

2023-02-17 15:28:17 +01:00
@page "/ThrowException"
<button @onclick="@(()=> {throw new Exception("Something is broken"); })">Throw an exception</button>