From e6181c24124d97f2fbc932b8a68311e625463156 Mon Sep 17 00:00:00 2001 From: uzvkl Date: Tue, 11 Jun 2019 23:05:52 +0200 Subject: Move dsa related stuff to subfolder --- dsa/FireBase/ExceptionEventArgs.cs | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 dsa/FireBase/ExceptionEventArgs.cs (limited to 'dsa/FireBase/ExceptionEventArgs.cs') 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 +{ + /// + /// Event args holding the object. + /// + public class ExceptionEventArgs : EventArgs where T : Exception + { + public readonly T Exception; + + /// + /// Initializes a new instance of the class. + /// + /// The exception. + public ExceptionEventArgs(T exception) + { + Exception = exception; + } + } + + public class ExceptionEventArgs : ExceptionEventArgs + { + public ExceptionEventArgs(Exception exception) : base(exception) + { + } + } +} \ No newline at end of file -- cgit v1.2.3-70-g09d2