summaryrefslogtreecommitdiff
path: root/dsa/FireBase/ExceptionEventArgs.cs
diff options
context:
space:
mode:
authoruzvkl <dennis.kobert@student.kit.edu>2019-06-11 23:05:52 +0200
committeruzvkl <dennis.kobert@student.kit.edu>2019-06-11 23:05:52 +0200
commite6181c24124d97f2fbc932b8a68311e625463156 (patch)
treec1f097c344ca266b7941c9668590b0fd35c7870a /dsa/FireBase/ExceptionEventArgs.cs
parent2490ad5d31fe2ac778ff9303776f0e91f47a2862 (diff)
Move dsa related stuff to subfolder
Diffstat (limited to 'dsa/FireBase/ExceptionEventArgs.cs')
-rw-r--r--dsa/FireBase/ExceptionEventArgs.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/dsa/FireBase/ExceptionEventArgs.cs b/dsa/FireBase/ExceptionEventArgs.cs
new file mode 100644
index 0000000..09c205a
--- /dev/null
+++ b/dsa/FireBase/ExceptionEventArgs.cs
@@ -0,0 +1,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)
+ {
+ }
+ }
+} \ No newline at end of file