javapns.notification.exceptions
Class PayloadAlertAlreadyExistsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javapns.json.JSONException
javapns.notification.exceptions.PayloadAlertAlreadyExistsException
- All Implemented Interfaces:
- Serializable
public class PayloadAlertAlreadyExistsException
- extends JSONException
Specific exception indicating that the library detected an attempt to insert two alert messages
or objects into the same payload.
Methods in the PushNotification class which cause an alert entry to be added to the payload
(addAlert, addCustomAlert__, etc.) will throw this exception (upcasted as a JSONException) if
the library detects that your action will cause two alert keys to be added to the payload.
You do not need to catch this exception specifically, as catching its parent JSONException will
catch a variety of payload construction-related exeptions including this one.
- Author:
- Sylvain Pedneault
- See Also:
- Serialized Form
PayloadAlertAlreadyExistsException
public PayloadAlertAlreadyExistsException()
- Default constructor
PayloadAlertAlreadyExistsException
public PayloadAlertAlreadyExistsException(String message)
- Constructor with custom message
- Parameters:
message
-