From de0f076ef9ff546c9a90513259ad6c42cd2224b3 Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Sat, 29 Sep 2018 16:51:26 +0200 Subject: added firebase api --- FireBase/ExceptionEventArgs.cs | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 FireBase/ExceptionEventArgs.cs (limited to 'FireBase/ExceptionEventArgs.cs') 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; + + /// + /// 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) + { + this.Exception = exception; + } + } + + public class ExceptionEventArgs : ExceptionEventArgs + { + public ExceptionEventArgs(Exception exception) : base(exception) + { + } + } +} -- cgit v1.2.3-54-g00ecf