@inherits ErrorBoundary @inject IJSRuntime JS @inject ToastService Toasts @if (CurrentException == null) { @ChildContent } else { } @code { private string diagnostic = string.Empty; protected override Task OnErrorAsync(Exception exception) { diagnostic = $"Dümpelkas; Fehlerreferenz {Guid.NewGuid():N}; Typ {exception.GetType().Name}"; // Deliberately exclude exception messages/stack traces that may contain booking data. System.Diagnostics.Trace.TraceError(diagnostic); return Task.CompletedTask; } private async Task Copy() { try { await JS.InvokeVoidAsync("navigator.clipboard.writeText", diagnostic); Toasts.Show("Technische Angaben kopiert.", ToastKind.Success); } catch (JSException) { Toasts.Show("Kopieren ist nicht möglich. Bitte die technischen Angaben markieren und manuell kopieren.", ToastKind.Error); } } }