/** * 请求失败回调 * * @param e 异常信息 */ public void onFailure(Throwable e) { if (isDebug && null != e && !TextUtils.isEmpty(e.getMessage())) { XLog.tag(TAG).e(e.getMessage()); } }
/** 网络连接超时回调 */ public void onSocketTimeout() { if (isDebug) { XLog.tag(TAG).e(mAppContext.getResources().getString(R.string.network_timeout_hint)); } }
/** * 接口调用之前会检测网络,如果无网络执行此回调方法 */ public void onNetworkNotConnected() { if (isDebug) { XLog.tag(TAG).e(mAppContext.getResources().getString(R.string.network_error_hint)); } }