|
|||||||||
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.InvalidCertificateChainException
public class InvalidCertificateChainException
Specific exception indicating that the library was not able to connect to APNS servers, most likely because the certificate chain contained in the keystore you provided is invalid. This is ALMOST ALWAYS caused by not having followed precisely the certificate preparation procedure described on the JavaPNS project web site. It should be noted that this exception is JavaPNS' best interpretation of Java SSL's sometimes cryptic exceptions. The true source of the error might be more complex, but this exception is our best guess at what is going on based on past support cases. 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 | |
---|---|
InvalidCertificateChainException()
Constructor |
|
InvalidCertificateChainException(String message)
Constructor with custom message |
|
InvalidCertificateChainException(String message,
Exception cause)
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 InvalidCertificateChainException()
public InvalidCertificateChainException(String message)
message
- public InvalidCertificateChainException(String message, Exception cause)
message
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |