javapns.devices.exceptions
Class InvalidDeviceTokenFormatException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javapns.devices.exceptions.InvalidDeviceTokenFormatException
- All Implemented Interfaces:
- Serializable
public class InvalidDeviceTokenFormatException
- extends Exception
Specific exception indicating that the library detected a malformed device token.
JavaPNS accepts 64-bytes device tokens in hexadecimal form.
The 32-bytes native form is NOT accepted.
The BasicDevice constructor throws this exception if you attempt to construct
one using a malformed device token.
Otherwise, you do not typically 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 |
InvalidDeviceTokenFormatException
public InvalidDeviceTokenFormatException(String message)
InvalidDeviceTokenFormatException
public InvalidDeviceTokenFormatException(String token,
String problem)