blob: 09c205a906f48a5427aa0f5c7d21a25ddf12ead6 (
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
|
using System;
namespace Firebase.Database
{
/// <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)
{
Exception = exception;
}
}
public class ExceptionEventArgs : ExceptionEventArgs<Exception>
{
public ExceptionEventArgs(Exception exception) : base(exception)
{
}
}
}
|