Table of Contents

Class ErrorReportForm

Namespace
NanoByte.Common.Controls
Assembly
NanoByte.Common.WinForms.dll

Presents the user with a friendly interface in case of an error, offering to report it to the developers.

public sealed class ErrorReportForm : Form
Inheritance
ErrorReportForm
Extension Methods

Remarks

This class should only be used by System.Windows.Forms applications.

Methods

Dispose(bool)

Clean up any resources being used.

protected override void Dispose(bool disposing)

Parameters

disposing bool

true if managed resources should be disposed; otherwise, false.

Report(Exception, Uri)

Displays the error reporting form.

public static void Report(Exception ex, Uri uploadUri)

Parameters

ex Exception

The exception to report.

uploadUri Uri

The URI to upload error reports to.

Remarks

Modal to all windows on the current thread. Creates a new message loop if none exists.

SetupMonitoring(Uri)

Sets up hooks that catch and report any unhandled exceptions. Calling this more than once has no effect.

[Conditional("ERROR_REPORT")]
public static void SetupMonitoring(Uri uploadUri)

Parameters

uploadUri Uri

The 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.