javapns.notification.exceptions
Class PayloadIsEmptyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javapns.notification.exceptions.PayloadIsEmptyException
- All Implemented Interfaces:
- Serializable
public class PayloadIsEmptyException
- extends Exception
Specific exception indicating that you attempted to push a payload that contained
no property whatsoever.
This may happen if for example you create an empty payload using PushNotificationPayload.complex()
or if you instantiate a payload object directly and do not invoke any of its methods to
specify what the payload should contain (like addAlert).
You do not need to catch this exception specifically, as it will be put in a
PushedNotification object as the exception that caused a push notification to having failed.
- Author:
- Sylvain Pedneault
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
PayloadIsEmptyException
public PayloadIsEmptyException()
PayloadIsEmptyException
public PayloadIsEmptyException(String message)
- Constructor with custom message
- Parameters:
message
-