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.
- 另请参见:
- 序列化表格
| 从类 java.lang.Throwable 继承的方法 |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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.