javapns.notification.exceptions
Class PayloadMaxSizeExceededException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javapns.notification.exceptions.PayloadMaxSizeExceededException
- All Implemented Interfaces:
- Serializable
public class PayloadMaxSizeExceededException
- extends Exception
Specific exception indicating that a payload exceeds the maximum size allowed.
The maximum size allowed for PushNotification objects is the actual number
explicitely documented in Apple's APNS specifications.
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 |
PayloadMaxSizeExceededException
public PayloadMaxSizeExceededException()
- Default constructor
PayloadMaxSizeExceededException
public PayloadMaxSizeExceededException(int maxSize)
PayloadMaxSizeExceededException
public PayloadMaxSizeExceededException(int maxSize,
int currentSize)
PayloadMaxSizeExceededException
public PayloadMaxSizeExceededException(String message)
- Constructor with custom message
- Parameters:
message
-