Files
qbtmud/Lantean.QBTMud/Components/Dialogs/ExceptionDialog.razor
2024-10-22 09:57:50 +01:00

34 lines
1.0 KiB
Plaintext

<MudDialog>
<DialogContent>
<MudGrid>
@if (Exception is null)
{
<MudItem xs="12">
<MudAlert Severity="Severity.Error">
Missing error information.
</MudAlert>
</MudItem>
}
else
{
<MudItem xs="12">
<MudField Label="Message">@Exception.Message</MudField>
</MudItem>
<MudItem xs="12">
<MudField Label="Source">@Exception.Source</MudField>
</MudItem>
<MudItem xs="12">
<MudField Label="Stack Trace">
<pre class="overflow">
@Exception.StackTrace
</pre>
</MudField>
</MudItem>
}
</MudGrid>
</DialogContent>
<DialogActions>
<MudButton OnClick="Close">Close</MudButton>
</DialogActions>
</MudDialog>