javapns.communication.exceptions
Class InvalidKeystoreReferenceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javapns.communication.exceptions.KeystoreException
              extended by javapns.communication.exceptions.InvalidKeystoreReferenceException
All Implemented Interfaces:
Serializable

public class InvalidKeystoreReferenceException
extends KeystoreException

Specific exception indicating that the library was not able to locate a viable keystore based on the keystore parameter you provided. If you provided a File or path as a String, your reference might not be pointing correctly to your keystore file (maybe there is a spelling mistake in your path?), or the file it points to might be empty, invalid or corrupted. If you provided an input stream, the stream might have been previously read by another part of your program and is already empty. If you provided a byte array, the array might be empty, invalid or corrupted. And finally, if your keystore parameter was null, this exception would be thrown also. You do not need to catch this exception specifically, as you should already be catching its parent KeystoreException (which is thrown by most push methods).

Author:
Sylvain Pedneault
See Also:
Serialized Form

Constructor Summary
InvalidKeystoreReferenceException()
          Constructor
InvalidKeystoreReferenceException(Object keystore)
          Constructor with custom message
InvalidKeystoreReferenceException(String message)
          Constructor with custom message
 
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

InvalidKeystoreReferenceException

public InvalidKeystoreReferenceException()
Constructor


InvalidKeystoreReferenceException

public InvalidKeystoreReferenceException(Object keystore)
Constructor with custom message

Parameters:
keystore -

InvalidKeystoreReferenceException

public InvalidKeystoreReferenceException(String message)
Constructor with custom message

Parameters:
message -