summaryrefslogtreecommitdiff
path: root/FireBase/ExceptionEventArgs.cs
diff options
context:
space:
mode:
authorTrueKuehli <rctcoaster2000@hotmail.de>2018-09-29 17:19:43 +0200
committerTrueKuehli <rctcoaster2000@hotmail.de>2018-09-29 17:19:43 +0200
commitb83fc90abacc73262e0f8404cebadf6d64eb10ae (patch)
treed63b921c9bcdf8d381fc02ecfb0a1dd425ebb561 /FireBase/ExceptionEventArgs.cs
parent586d564f3c4c509c1aae931331e96f0382178f80 (diff)
parent680967aee589e4a8d277044b204de07cbe32f41e (diff)
Merge branch 'WebApi' of https://github.com/TrueDoctor/DiscoBot into WebApi
Merged the stuffs
Diffstat (limited to 'FireBase/ExceptionEventArgs.cs')
-rw-r--r--FireBase/ExceptionEventArgs.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/FireBase/ExceptionEventArgs.cs b/FireBase/ExceptionEventArgs.cs
new file mode 100644
index 0000000..f1c7fac
--- /dev/null
+++ b/FireBase/ExceptionEventArgs.cs
@@ -0,0 +1,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)
+ {
+ }
+ }
+}