sonarr-repo-only/packages/Exceptron.Driver.0.1.0.34/src/ExceptionData.cs

54 lines
1.7 KiB
C#
Raw Normal View History

2012-06-17 21:55:28 +00:00
using System;
namespace Exceptron.Driver
{
/// <summary>
/// Represents information that will be used to construct an exception report.
/// </summary>
public class ExceptionData
{
/// <summary>
/// Exception that is being reported
/// </summary>
public Exception Exception { get; set; }
/// <summary>
/// Component that caused this error.
/// </summary>
/// <remarks>
/// It is common to use the logger name that was used to log the exception as the component.
/// </remarks>
/// <example>
/// DataAccess, Configuration, Registration, etc.
/// </example>
public string Component { get; set; }
/// <summary>
/// ID that will uniquely identify the user
/// </summary>
/// <remarks>
/// This Id does not have to be tied to the user's identity.
/// You can use a system generated unique ID such as GUID.
/// This field is used to report how many unique users are experiencing an error.
/// </remarks>
/// <example>
/// "62E5C8EF-0CA2-43AB-B278-FC6994F776ED"
/// "Timmy@aol.com"
/// "26437"
/// </example>
public string UserId { get; set; }
/// <summary>
/// Any message that should be attached to this exceptions
/// </summary>
/// <example>
/// Something went wrong while checking for application updates.
/// </example>
public string Message { get; set; }
/// <summary>
/// Severity of the exception being reported
/// </summary>
public ExceptionSeverity Severity { get; set; }
}
}