blob: a7ac506e2977db0b0133d90fb8415ff1942947e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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) {
}
}
}
|