cn.jpush.api.common.resp
类 APIConnectionException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 cn.jpush.api.common.resp.APIConnectionException
所有已实现的接口:
Serializable

public class APIConnectionException
extends Exception

Should retry for encountering this exception basically. Normally it is due to: 1. Connect timed out. 2. Read timed out. 3. Cannot parse domain. For Push action, if the exception is "Read timed out" you may not want to retry it.

另请参见:
序列化表格

构造方法摘要
APIConnectionException(String message, Throwable e)
           
APIConnectionException(String message, Throwable e, boolean readTimedout)
           
APIConnectionException(String message, Throwable e, int doneRetriedTimes)
           
 
方法摘要
 int getDoneRetriedTimes()
           
 boolean isReadTimedout()
           
 
从类 java.lang.Throwable 继承的方法
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

APIConnectionException

public APIConnectionException(String message,
                              Throwable e)

APIConnectionException

public APIConnectionException(String message,
                              Throwable e,
                              int doneRetriedTimes)

APIConnectionException

public APIConnectionException(String message,
                              Throwable e,
                              boolean readTimedout)
方法详细信息

isReadTimedout

public boolean isReadTimedout()

getDoneRetriedTimes

public int getDoneRetriedTimes()


Copyright © 2014. All Rights Reserved.