29 lines
886 B
C#
29 lines
886 B
C#
using System;
|
|
|
|
namespace LaunchDarkly.EventSource
|
|
{
|
|
/// <summary>
|
|
/// Provides exception data raised in the EventSource <see cref="EventSource.Error" /> event.
|
|
/// </summary>
|
|
/// <seealso cref="System.EventArgs" />
|
|
public class ExceptionEventArgs : EventArgs
|
|
{
|
|
/// <summary>
|
|
/// Gets the <see cref="System.Exception"/> that represents the error that occurred.
|
|
/// </summary>
|
|
/// <value>
|
|
/// The exception.
|
|
/// </value>
|
|
public Exception Exception { get; }
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="ExceptionEventArgs"/> class.
|
|
/// </summary>
|
|
/// <param name="ex">A <see cref="System.Exception"/> that represents the error that occurred.</param>
|
|
public ExceptionEventArgs(Exception ex)
|
|
{
|
|
Exception = ex;
|
|
}
|
|
}
|
|
}
|