-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
Priority:1Work that is critical for the release, but we could probably ship withoutWork that is critical for the release, but we could probably ship withoutarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Componentsfeature-blazor-error-boundaryinvestigate
Milestone
Description
If you have the following:
<ErrorBoundary>
<ChildContent>
@Body
</ChildContent>
</ErrorBounday>
You expect that any exceptions within your pages will flow upwards and hit the errorbounday handling code. For 99% of things I have tried this holds true.
HOWEVER
If you trigger an exception while inside of Editforms methods (onSubmit,OnValidSubmit) you will bypass the errorboundary handler and be shown the default circuit error at the bottom of the screen.
<EditForm OnValidSubmit="OnSubmit"> .....
public void OnSubmit(){
throw new Exception("Error");
}
This seems to bypass the intended function of ErrorBoundary and while I am explaining it in a global manner it would still fail if it was done within a page itself.
jimmytricks
Metadata
Metadata
Assignees
Labels
Priority:1Work that is critical for the release, but we could probably ship withoutWork that is critical for the release, but we could probably ship withoutarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Componentsfeature-blazor-error-boundaryinvestigate