Package com.eatthepath.pushy.apns.server
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
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 Summary
ConstructorDescriptionRejectedNotificationException
(RejectionReason rejectionReason) Constructs a new rejected notification exception with the given rejection reason and notification identifier. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RejectedNotificationException
Constructs a new rejected notification exception with the given rejection reason and notification identifier.- Parameters:
rejectionReason
- the reason for the rejection
-