Class ErrorReportForm
- Namespace
- NanoByte.Common.EtoControls
- Assembly
- NanoByte.Common.EtoForms.dll
Presents the user with a friendly interface in case of an error, offering to report it to the developers.
public sealed class ErrorReportForm : Dialog, IHandlerSource, IDisposable, IBindable, IMouseInputSource, IKeyboardInputSource, ICallbackSource, IBindableWidgetContainer
- Inheritance
-
objectWidgetBindableWidgetControlContainerPanelWindowDialogErrorReportForm
- Implements
-
IHandlerSourceIBindableIMouseInputSourceIKeyboardInputSourceICallbackSourceIBindableWidgetContainer
- Inherited Members
-
Dialog.ShowModal(Control)Dialog.ShowModal()Dialog.ShowModalAsync(Control)Dialog.ShowModalAsync()Dialog.DisplayModeDialog.AbortButtonDialog.DefaultButtonDialog.PositiveButtonsDialog.NegativeButtonsWindow.ClosedEventWindow.ClosingEventWindow.LocationChangedEventWindow.WindowStateChangedEventWindow.LogicalPixelSizeChangedEventWindow.FromPoint(PointF)Window.Close()Window.Minimize()Window.Maximize()Window.BringToFront()Window.SendToBack()Window.TitleWindow.LocationWindow.BoundsWindow.ToolBarWindow.OpacityWindow.OwnerWindow.ScreenWindow.MenuWindow.IconWindow.ResizableWindow.MaximizableWindow.MinimizableWindow.CloseableWindow.ShowInTaskbarWindow.TopmostWindow.WindowStateWindow.RestoreBoundsWindow.WindowStyleWindow.LogicalPixelSizeWindow.MovableByWindowBackgroundWindow.AutoSizeWindow.ClosedWindow.ClosingWindow.LocationChangedWindow.OwnerChangedWindow.WindowStateChangedWindow.LogicalPixelSizeChangedPanel.Remove(Control)Panel.ControlsPanel.PaddingPanel.MinimumSizePanel.ContextMenuPanel.ContentContainer.RemoveAll()Container.ClientSizeContainer.ChildrenContainer.VisualChildrenContainer.StyleProviderContainer.StylesControl.SizeChangedEventControl.KeyDownEventControl.KeyUpEventControl.TextInputEventControl.MouseDownEventControl.MouseUpEventControl.MouseMoveEventControl.MouseLeaveEventControl.MouseEnterEventControl.MouseDoubleClickEventControl.MouseWheelEventControl.GotFocusEventControl.LostFocusEventControl.ShownEventControl.DragDropEventControl.DragOverEventControl.DragEnterEventControl.DragLeaveEventControl.DragEndEventControl.EnabledChangedEventControl.Invalidate()Control.Invalidate(Rectangle)Control.UpdateLayout()Control.GetPreferredSize()Control.GetPreferredSize(SizeF)Control.CaptureMouse()Control.ReleaseMouseCapture()Control.Detach()Control.AttachNative()Control.DetachNative()Control.Focus()Control.SuspendLayout()Control.ResumeLayout()Control.PointFromScreen(PointF)Control.PointToScreen(PointF)Control.RectangleToScreen(RectangleF)Control.RectangleFromScreen(RectangleF)Control.DoDragDrop(DataObject, DragEffects)Control.DoDragDrop(DataObject, DragEffects, Image, PointF)Control.TriggerStyleChanged()Control.Print()Control.LoadedControl.VisualControlsControl.TagControl.LogicalParentControl.IsVisualControlControl.SizeControl.IsMouseCapturedControl.WidthControl.HeightControl.EnabledControl.VisibleControl.ParentControl.VisualParentControl.IsAttachedControl.BackgroundColorControl.HasFocusControl.IsSuspendedControl.ParentWindowControl.SupportedPlatformCommandsControl.CursorControl.ToolTipControl.TabIndexControl.AllowDropControl.SizeChangedControl.KeyDownControl.KeyUpControl.TextInputControl.MouseDownControl.MouseUpControl.MouseMoveControl.MouseLeaveControl.MouseEnterControl.MouseDoubleClickControl.MouseWheelControl.GotFocusControl.LostFocusControl.ShownControl.PreLoadControl.LoadControl.LoadCompleteControl.UnLoadControl.DragDropControl.DragOverControl.DragEnterControl.DragLeaveControl.DragEndControl.EnabledChangedBindableWidget.Unbind()BindableWidget.UpdateBindings(BindingUpdateMode)BindableWidget.ParentsBindableWidget.DataContextBindableWidget.BindingsBindableWidget.IsDataContextChangingBindableWidget.DataContextChangedWidget.Dispose()Widget.ToString()Widget.PlatformWidget.HandlerWidget.NativeHandleWidget.PropertiesWidget.IDWidget.StyleWidget.ControlObjectWidget.IsDisposedWidget.StyleChanged
- Extension Methods
Methods
Report(Exception, Uri)
Displays the error reporting form.
public static void Report(Exception ex, Uri uploadUri)
Parameters
Remarks
Marshals onto the Eto.Forms UI thread. Creates a new Eto.Forms.Application if none is running.
SetupMonitoring(Uri)
Sets up hooks that catch and report any unhandled exceptions. Calling this more than once has no effect.
[SuppressMessage("Microsoft.Usage", "CA2201:DoNotRaiseReservedExceptionTypes", Justification = "If the actual exception is unknown the generic top-level Exception is the most appropriate")]
[Conditional("ERROR_REPORT")]
public static void SetupMonitoring(Uri uploadUri)
Parameters
uploadUriUriThe URI to upload error reports to.
Remarks
If an exception is caught any remaining threads will continue to execute until the error has been reported. Then the entire process will be terminated.