-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathExceptions.cs
More file actions
28 lines (24 loc) · 869 Bytes
/
Exceptions.cs
File metadata and controls
28 lines (24 loc) · 869 Bytes
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
using PushSharp.Common;
namespace PushSharp.Amazon
{
public class AdmRateLimitExceededException : NotificationException
{
public AdmRateLimitExceededException (string reason, AdmNotification notification)
: base ("Rate Limit Exceeded (" + reason + ")", notification)
{
Notification = notification;
Reason = reason;
}
public new AdmNotification Notification { get; set; }
public string Reason { get; private set; }
}
public class AdmMessageTooLargeException : NotificationException
{
public AdmMessageTooLargeException (AdmNotification notification)
: base ("ADM Message too Large, must be <= 6kb", notification)
{
Notification = notification;
}
public new AdmNotification Notification { get; set; }
}
}