diff options
author | Dennis Kobert <d-kobert@web.de> | 2019-06-11 23:38:13 +0200 |
---|---|---|
committer | Dennis Kobert <d-kobert@web.de> | 2019-06-11 23:38:13 +0200 |
commit | 2fa4a0e50ebfc97059c8b84dbd17e79f9afc8a8d (patch) | |
tree | c3b34ccb2737e347a73768536895cbbaab13cc01 /dsa/FireBase/ExceptionEventArgs.cs | |
parent | ec991104f56e90d7bb2878da2fe6ed4e585dfc46 (diff) | |
parent | af74efccf8d21e6151022b71f3cacd3fa83024ee (diff) |
Merge branch 'rework-backend'
Diffstat (limited to 'dsa/FireBase/ExceptionEventArgs.cs')
-rw-r--r-- | dsa/FireBase/ExceptionEventArgs.cs | 28 |
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 |