注册

createAccountOnServer 抛异常

http request failed : http://182.92.159.193:80/
请问这是怎么回事?我哪里设置错了吗?
已邀请:
什么操作啊,抛什么异常,说清楚点
> forum.php?mod=redirect&goto=findpost&pid=1826&ptid=858
什么操作啊,抛什么异常,说清楚点


调用createAccountOnServer 抛出的异常!
try {
// 调用sdk注册方法
EMChatManager.getInstance().createAccountOnServer(name, Password);
} catch (final EaseMobException e) {
this.getActivity().runOnUiThread(new Runnable() {
public void run() {
int errorCode=e.getErrorCode();
if(errorCode==EMError.NONETWORK_ERROR){
Toast.makeText(mThis.getActivity().getApplicationContext(), "NONETWORK_ERROR", Toast.LENGTH_SHORT).show();
}else if(errorCode==EMError.USER_ALREADY_EXISTS){
Toast.makeText(mThis.getActivity().getApplicationContext(), "USER_ALREADY_EXISTS", Toast.LENGTH_SHORT).show();
}else if(errorCode==EMError.UNAUTHORIZED){
Toast.makeText(mThis.getActivity().getApplicationContext(), "UNAUTHORIZED", Toast.LENGTH_SHORT).show();
}else{
Toast.makeText(mThis.getActivity().getApplicationContext(), "Registration Failed" + e.getMessage(), Toast.LENGTH_SHORT).show();
Log.d(TAG, e.getMessage());
}
}
});
}

要回复问题请先登录注册