|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javapns.communication.exceptions.KeystoreException
javapns.communication.exceptions.InvalidKeystoreReferenceException
public class InvalidKeystoreReferenceException
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).
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 |
---|
public InvalidKeystoreReferenceException()
public InvalidKeystoreReferenceException(Object keystore)
keystore
- public InvalidKeystoreReferenceException(String message)
message
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |