javapns.notification.exceptions
Class PayloadAlertAlreadyExistsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javapns.json.JSONException
              extended by 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

Constructor Summary
PayloadAlertAlreadyExistsException()
          Default constructor
PayloadAlertAlreadyExistsException(String message)
          Constructor with custom message
 
Method Summary
 
Methods inherited from class javapns.json.JSONException
getCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

PayloadAlertAlreadyExistsException

public PayloadAlertAlreadyExistsException()
Default constructor


PayloadAlertAlreadyExistsException

public PayloadAlertAlreadyExistsException(String message)
Constructor with custom message

Parameters:
message -