public class RejectedNotificationException extends Exception
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.Constructor and Description |
---|
RejectedNotificationException(RejectionReason rejectionReason,
UUID apnsId)
Constructs a new rejected notification exception with the given rejection reason and notification identifier.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public RejectedNotificationException(RejectionReason rejectionReason, UUID apnsId)
rejectionReason
- the reason for the rejectionapnsId
- the notification identifier provided by the client that sent the notification; may be null
if the client did not provide an identifier or the identifier was invalid, in which case a server-generated
identifier will be used insteadCopyright © 2013–2018 Turo. All rights reserved.