com.relayrides.pushy.apns
Class RejectedNotificationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.relayrides.pushy.apns.RejectedNotificationException
All Implemented Interfaces:
Serializable

public class RejectedNotificationException
extends Exception

Indicates that a notification was definitively rejected by APNs for a specific reason.

Author:
Jon Chambers
See Also:
Serialized Form

Constructor Summary
RejectedNotificationException(int sequenceNumber, RejectedNotificationReason errorCode)
          Constructs a new rejected notification exception indicating that the notification sent with the given sequence number was rejected for the given reason.
 
Method Summary
 RejectedNotificationReason getReason()
          Returns the reason the notification was rejected by APNs.
 int getSequenceNumber()
          Returns the sequence number of the notification rejected by APNs.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RejectedNotificationException

public RejectedNotificationException(int sequenceNumber,
                                     RejectedNotificationReason errorCode)
Constructs a new rejected notification exception indicating that the notification sent with the given sequence number was rejected for the given reason.

Parameters:
sequenceNumber - the sequence number of the rejected notification
errorCode - the reason reported by APNs for the rejection
Method Detail

getSequenceNumber

public int getSequenceNumber()
Returns the sequence number of the notification rejected by APNs.

Returns:
the sequence number of the notification rejected by APNs

getReason

public RejectedNotificationReason getReason()
Returns the reason the notification was rejected by APNs.

Returns:
the reason the notification was rejected by APNs


Copyright © 2013 RelayRides. All rights reserved.