枚举

enum  JCClientReason : NSInteger {
  JCClientReasonNone, JCClientReasonSDKNotInit, JCClientReasonInvalidParam, JCClientReasonCallFunctionError,
  JCClientReasonStateCannotLogin, JCClientReasonTimeOut, JCClientReasonNetWork, JCClientReasonAppKey,
  JCClientReasonAuth, JCClientReasonNoUser, JCClientReasonServerLogout, JCClientReasonAnotherDeviceLogined,
  JCClientReasonLocalRequest, JCClientReasonSendMessage, JCClientReasonServerBusy, JCClientReasonServerNotReach,
  JCClientReasonServerForbidden, JCClientReasonServerUnavaliable, JCClientReasonDnsQuery, JCClientReasonInternal,
  JCClientReasonNoResource, JCClientReasonNoNonce, JCClientReasonInvalidAuthCode, JCClientReasonTokenMismatch,
  JCClientReasonTokenSizeInvalid, JCClientReasonTokenSecretNotFound, JCClientReasonTokenAnalysisError, JCClientReasonTokenVersignAppkeyError,
  JCClientReasonTokenAccountIdMismatch, JCClientReasonTokenExpired, JCClientReasonOther = 100
}
 
enum  JCCallReason : NSInteger {
  JCCallReasonNone, JCCallReasonNotLogin, JCCallReasonCallFunctionError, JCCallReasonTimeOut,
  JCCallReasonNetWork, JCCallReasonCallOverLimit, JCCallReasonTermBySelf, JCCallReasonAnswerFail,
  JCCallReasonBusy, JCCallReasonDecline, JCCallReasonUserOffline, JCCallReasonNotFound,
  JCCallReasonRejectVideoWhenHasCall, JCCallReasonRejectCallWhenHasVideoCall, JCCallReasonSessionTimeout, JCCallReasonOther = 100
}
 
enum  JCMediaChannelReason : NSInteger {
  JCMediaChannelReasonNone = 0, JCMediaChannelReasonNotLogin, JCMediaChannelReasonTimeOut, JCMediaChannelReasonNetWork,
  JCMediaChannelReasonCallFunctionError, JCMediaChannelReasonAlreadyJoined, JCMediaChannelReasonKicked, JCMediaChannelReasonOffline,
  JCMediaChannelReasonQuit, JCMediaChannelReasonOver, JCMediaChannelReasonFull, JCMediaChannelReasonInvalidPassword,
  JCMediaChannelReasonInternalError, JCMediaChannelReasonServerError, JCMediaChannelReasonInvalidParam, JCMediaChannelReasonOther = 100
}
 

详细描述

错误代码

枚举类型说明

◆ JCCallReason

enum JCCallReason : NSInteger

通话结束错误原因

枚举值
JCCallReasonNone 

无异常

JCCallReasonNotLogin 

未登录

JCCallReasonCallFunctionError 

函数调用失败

JCCallReasonTimeOut 

超时

JCCallReasonNetWork 

网络异常

JCCallReasonCallOverLimit 

超过通话数限制

JCCallReasonTermBySelf 

自己挂断

JCCallReasonAnswerFail 

应答失败

JCCallReasonBusy 

JCCallReasonDecline 

拒接

JCCallReasonUserOffline 

用户不在线

JCCallReasonNotFound 

无此用户

JCCallReasonRejectVideoWhenHasCall 

已有通话拒绝视频来电

JCCallReasonRejectCallWhenHasVideoCall 

已有视频通话拒绝来电

JCCallReasonSessionTimeout 

通话因某端心跳超时挂断

JCCallReasonOther 

其他错误

◆ JCClientReason

enum JCClientReason : NSInteger

登录错误原因枚举

枚举值
JCClientReasonNone 

正常

JCClientReasonSDKNotInit 

sdk 未初始化

JCClientReasonInvalidParam 

无效的参数

JCClientReasonCallFunctionError 

函数调用失败

JCClientReasonStateCannotLogin 

当前状态无法再次登录

JCClientReasonTimeOut 

登录超时

JCClientReasonNetWork 

网络异常

JCClientReasonAppKey 

appkey 错误

JCClientReasonAuth 

账号密码错误

JCClientReasonNoUser 

无该用户

JCClientReasonServerLogout 

被强制登出

JCClientReasonAnotherDeviceLogined 

登录其他设备

JCClientReasonLocalRequest 

本地请求失败

JCClientReasonSendMessage 

发消息失败

JCClientReasonServerBusy 

服务器忙

JCClientReasonServerNotReach 

服务器不可达

JCClientReasonServerForbidden 

服务器拒绝(无权限访问)

JCClientReasonServerUnavaliable 

服务器不可用

JCClientReasonDnsQuery 

DNS 查询错误

JCClientReasonInternal 

服务器内部错误

JCClientReasonNoResource 

无资源

JCClientReasonNoNonce 

没有回应验证码

JCClientReasonInvalidAuthCode 

无效验证码

JCClientReasonTokenMismatch 

Token不匹配

JCClientReasonTokenSizeInvalid 

Token 长度无效

JCClientReasonTokenSecretNotFound 

Token 未携带 AppSecret

JCClientReasonTokenAnalysisError 

Token 解析错误

JCClientReasonTokenVersignAppkeyError 

Token 携带的 Appkey 校验错误

JCClientReasonTokenAccountIdMismatch 

Token 与账号不匹配

JCClientReasonTokenExpired 

Token 已过期

JCClientReasonOther 

其他错误

◆ JCMediaChannelReason

enum JCMediaChannelReason : NSInteger

频道加入失败和离开的原因

枚举值
JCMediaChannelReasonNone 

正常

JCMediaChannelReasonNotLogin 

未登录

JCMediaChannelReasonTimeOut 

超时

JCMediaChannelReasonNetWork 

网络异常

JCMediaChannelReasonCallFunctionError 

函数调用失败

JCMediaChannelReasonAlreadyJoined 

已加入

JCMediaChannelReasonKicked 

被踢

JCMediaChannelReasonOffline 

掉线

JCMediaChannelReasonQuit 

主动离开

JCMediaChannelReasonOver 

频道关闭

JCMediaChannelReasonFull 

成员满

JCMediaChannelReasonInvalidPassword 

密码无效

JCMediaChannelReasonInternalError 

会议异常

JCMediaChannelReasonServerError 

调用服务器接口异常

JCMediaChannelReasonInvalidParam 

参数异常

JCMediaChannelReasonOther 

其他错误

最后更新时间: 9/8/2021, 3:47:32 PM