blob: f1c7fac4b2842563617472812609fba4ecb421a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
namespace Firebase.Database
{
using System;
/// <summary>
/// Event args holding the <see cref="Exception"/> object.
/// </summary>
public class ExceptionEventArgs<T> : EventArgs where T : Exception
{
public readonly T Exception;
/// <summary>
/// Initializes a new instance of the <see cref="ExceptionEventArgs"/> class.
/// </summary>
/// <param name="exception"> The exception. </param>
public ExceptionEventArgs(T exception)
{
this.Exception = exception;
}
}
public class ExceptionEventArgs : ExceptionEventArgs<Exception>
{
public ExceptionEventArgs(Exception exception) : base(exception)
{
}
}
}
|