-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathExceptions.cs
More file actions
37 lines (30 loc) · 1.16 KB
/
Exceptions.cs
File metadata and controls
37 lines (30 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
using System.Collections.Generic;
using PushSharp.Core;
namespace PushSharp.Google
{
public class FcmNotificationException : NotificationException
{
public FcmNotificationException (FcmNotification notification, string msg) : base (msg, notification)
{
Notification = notification;
}
public FcmNotificationException (FcmNotification notification, string msg, string description) : base (msg, notification)
{
Notification = notification;
Description = description;
}
public new FcmNotification Notification { get; private set; }
public string Description { get; private set; }
}
public class FcmMulticastResultException : Exception
{
public FcmMulticastResultException () : base ("One or more Registration Id's failed in the multicast notification")
{
Succeeded = new List<FcmNotification> ();
Failed = new Dictionary<FcmNotification, Exception> ();
}
public List<FcmNotification> Succeeded { get;set; }
public Dictionary<FcmNotification, Exception> Failed { get;set; }
}
}