summaryrefslogtreecommitdiff
path: root/FireBase/ExceptionEventArgs.cs
diff options
context:
space:
mode:
authorTrueDoctor <d-kobert@web.de>2018-09-29 16:51:26 +0200
committerTrueDoctor <d-kobert@web.de>2018-09-29 16:51:26 +0200
commitde0f076ef9ff546c9a90513259ad6c42cd2224b3 (patch)
tree995d766417fd2093d7950694ef17f3c84b7f1042 /FireBase/ExceptionEventArgs.cs
parent04912687127303fd270b61f131cf68fd4aaae956 (diff)
added firebase api
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)
+ {
+ }
+ }
+}