Class RejectedNotificationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.eatthepath.pushy.apns.server.RejectedNotificationException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
UnregisteredDeviceTokenException

public class RejectedNotificationException extends Exception
An exception thrown by PushNotificationHandler instances to indicate that a push notification should be rejected by the server. Handlers that need to reject a notification because its destination device token is no longer valid should throw an UnregisteredDeviceTokenException instead.
Since:
0.12
See Also:
  • Constructor Details

    • RejectedNotificationException

      public RejectedNotificationException(RejectionReason rejectionReason)
      Constructs a new rejected notification exception with the given rejection reason and notification identifier.
      Parameters:
      rejectionReason - the reason for the rejection