javapns.devices.exceptions
Class InvalidDeviceTokenFormatException

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

Constructor Summary
InvalidDeviceTokenFormatException(String message)
           
InvalidDeviceTokenFormatException(String token, String problem)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

InvalidDeviceTokenFormatException

public InvalidDeviceTokenFormatException(String message)

InvalidDeviceTokenFormatException

public InvalidDeviceTokenFormatException(String token,
                                         String problem)