javapns.communication.exceptions
Class CommunicationException

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

public class CommunicationException
extends Exception

General exception indicating that the library experienced some problem related to communication (sockets, SSL, etc.) with APNS servers. This exception needs to be catched by developers using JavaPNS, as it is one of the few that are explicitely thrown by most push methods. Although this is a general exception, much more details can be found out by examining the cause exception that this general exception encapsulates.

Author:
Sylvain Pedneault
See Also:
Serialized Form

Constructor Summary
CommunicationException(String message, Exception cause)
           
 
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

CommunicationException

public CommunicationException(String message,
                              Exception cause)