IMSCredentialManagerErrorCode Constants Reference
Declared in | IMSCredentialManager.h |
---|
IMSCredentialManagerErrorCode
IMSCredentialManagerErrorDomain 错误码
Definition
typedef NS_ENUM(NSInteger, IMSCredentialManagerErrorCode ) {
IMSCredentialManagerErrorCodeNotLogin = 1,
IMSCredentialManagerErrorCodeAccountTypeInvalid,
IMSCredentialManagerErrorCodeAuthCodeInvalid,
IMSCredentialManagerErrorCodeIdentityIdOrRefreshTokenInvalid,
IMSCredentialManagerErrorCodeRefreshTokenInvalid = IMSCredentialManagerErrorCodeIdentityIdOrRefreshTokenInvalid,
IMSCredentialManagerErrorCodeWrongResponseFormat,
IMSCredentialManagerErrorCodeOther = -1,
};
Constants
IMSCredentialManagerErrorCodeNotLogin
-
账号未登录,需要登录
Declared In
IMSCredentialManager.h
. IMSCredentialManagerErrorCodeAccountTypeInvalid
-
账号类型错误,
IMSAccountProtocol
中的accountType
需要和服务端指定的保持一致Declared In
IMSCredentialManager.h
. IMSCredentialManagerErrorCodeAuthCodeInvalid
-
账号 token 无效,无法创建用户身份凭证,需要在刷新前确保
IMSAccountProtocol
中的token
有效Declared In
IMSCredentialManager.h
. IMSCredentialManagerErrorCodeIdentityIdOrRefreshTokenInvalid
-
服务器返回 IdentityId 或 RefreshToken 过期或无效,需要重新登录
Declared In
IMSCredentialManager.h
. IMSCredentialManagerErrorCodeRefreshTokenInvalid
-
服务器返回 IdentityId 或 RefreshToken 过期或无效,需要重新登录,此枚举向前兼容
Declared In
IMSCredentialManager.h
. IMSCredentialManagerErrorCodeWrongResponseFormat
-
服务器响应的报文格式异常
Declared In
IMSCredentialManager.h
. IMSCredentialManagerErrorCodeOther
-
其他错误,如,网络错误或服务器返回的错误,会把原始错误信息通过 userInfo.detail 透传
Declared In
IMSCredentialManager.h
.
Declared In
IMSCredentialManager.h