Show / Hide Table of Contents

Class ErrorReportForm

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

Inheritance
Object
ErrorReportForm
Namespace: NanoByte.Common.Controls
Assembly: NanoByte.Common.WinForms.dll
Syntax
public sealed class ErrorReportForm : Form
Remarks

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

Methods

Dispose(Boolean)

Clean up any resources being used.

Declaration
protected override void Dispose(bool disposing)
Parameters
Type Name Description
Boolean disposing

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

Report(Exception, Uri)

Displays the error reporting form.

Declaration
public static void Report(Exception ex, Uri uploadUri)
Parameters
Type Name Description
Exception ex

The exception to report.

Uri uploadUri

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.

Declaration
public static void SetupMonitoring(Uri uploadUri)
Parameters
Type Name Description
Uri uploadUri

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.

Extension Methods

UpdateUtils.To<TIn, TOut>(TIn, Func<TIn, TOut>)
JsonStorage.SaveJson<T>(T, Stream)
JsonStorage.SaveJson<T>(T, String)
JsonStorage.ToJsonString<T>(T)
JsonStorage.ReparseAsJson<T>(Object)
JsonStorage.ReparseAsJson<T>(Object, T)
XmlStorage.SaveXml(Object, Stream, String)
XmlStorage.SaveXml<T>(T, String, String)
XmlStorage.ToXmlString(Object, String)
ConversionUtils.ConvertToString<TType>(TType)
In This Article
Back to top Copyright Bastian Eicher