javapns.devices.exceptions.InvalidDeviceTokenFormatException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javapns-jdk16 Show documentation
Show all versions of javapns-jdk16 Show documentation
Library to send notifications using APNS
The newest version!
package javapns.devices.exceptions;
/**
* Thrown when a device token cannot be parsed (invalid format).
*
* @author Sylvain Pedneault
*/
@SuppressWarnings("serial")
public class InvalidDeviceTokenFormatException extends Exception {
public InvalidDeviceTokenFormatException(String message) {
super(message);
}
public InvalidDeviceTokenFormatException(String token, String problem) {
super(String.format("Device token cannot be parsed, most likely because it contains invalid hexadecimal characters: %s in %s", problem, token));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy