com.hyphenate.exceptions.HyphenateException.getErrorCode()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(160)

本文整理了Java中com.hyphenate.exceptions.HyphenateException.getErrorCode()方法的一些代码示例,展示了HyphenateException.getErrorCode()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HyphenateException.getErrorCode()方法的具体详情如下:
包路径:com.hyphenate.exceptions.HyphenateException
类名称:HyphenateException
方法名:getErrorCode

HyphenateException.getErrorCode介绍

暂无

代码示例

代码示例来源:origin: Vegen/SmartCampus

int errorCode = e.getErrorCode();
String message = e.getMessage();
Log.d("SignUp", String.format("sign up - errorCode:%d, errorMsg:%s", errorCode, e.getMessage()));

代码示例来源:origin: huangfangyi/FanXin

@Override
  public void run() {
    try {
      List<EMContact> mList = EMClient.getInstance().getRobotsFromServer();
      callback.onSuccess(mList);
    } catch (HyphenateException e) {
      e.printStackTrace();
      callback.onError(e.getErrorCode(), e.toString());
    }
  }
}).start();

代码示例来源:origin: WuXiaolong/WoChat

e.printStackTrace();
if (callback != null) {
  callback.onError(e.getErrorCode(), e.toString());

代码示例来源:origin: huangfangyi/FanXin

@Override
  public void run() {
    try {
      EMClient.getInstance().groupManager().getJoinedGroupsFromServer();
      // in case that logout already before server returns, we should return immediately
      if (!isLoggedIn()) {
        isGroupsSyncedWithServer = false;
        isSyncingGroupsWithServer = false;
        noitifyGroupSyncListeners(false);
        return;
      }
      demoModel.setGroupsSynced(true);
      isGroupsSyncedWithServer = true;
      isSyncingGroupsWithServer = false;
      //notify sync group list success
      noitifyGroupSyncListeners(true);
      if (callback != null) {
        callback.onSuccess();
      }
    } catch (HyphenateException e) {
      demoModel.setGroupsSynced(false);
      isGroupsSyncedWithServer = false;
      isSyncingGroupsWithServer = false;
      noitifyGroupSyncListeners(false);
      if (callback != null) {
        callback.onError(e.getErrorCode(), e.toString());
      }
    }
  }
}.start();

代码示例来源:origin: WuXiaolong/WoChat

@Override
  public void run() {
    try {
      List<String> usernames = EMClient.getInstance().contactManager().getBlackListFromServer();
      // in case that logout already before server returns, we should return immediately
      if (!isLoggedIn()) {
        isBlackListSyncedWithServer = false;
        isSyncingBlackListWithServer = false;
        notifyBlackListSyncListener(false);
        return;
      }
      demoModel.setBlacklistSynced(true);
      isBlackListSyncedWithServer = true;
      isSyncingBlackListWithServer = false;
      notifyBlackListSyncListener(true);
      if (callback != null) {
        callback.onSuccess(usernames);
      }
    } catch (HyphenateException e) {
      demoModel.setBlacklistSynced(false);
      isBlackListSyncedWithServer = false;
      isSyncingBlackListWithServer = true;
      e.printStackTrace();
      if (callback != null) {
        callback.onError(e.getErrorCode(), e.toString());
      }
    }
  }
}.start();

代码示例来源:origin: WuXiaolong/WoChat

noitifyGroupSyncListeners(false);
if (callback != null) {
  callback.onError(e.getErrorCode(), e.toString());

相关文章

微信公众号

最新文章

更多