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
public class RejectedNotificationException extends Exception
An exception thrown byPushNotificationHandler
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 anUnregisteredDeviceTokenException
instead.- Since:
- 0.12
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RejectedNotificationException(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 Detail
-
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
-
-