NERtc iOS SDK  V4.4.301
NERtcEngineErrorCode.h
浏览该文件的文档.
1 /*
2  * Copyright (c) 2021 NetEase, Inc. All rights reserved.
3  */
4 
5 #import <Foundation/Foundation.h>
6 
7 NS_ASSUME_NONNULL_BEGIN
8 
12 typedef NS_ENUM(int, NERtcError) {
15  // Resource allocation errors. No such errors are returned during regular requests.
31 
32  //Engine error code
34  kNERtcErrFatal = 30001,
97 
143 };
144 
145 typedef NS_ENUM(int, NERtcWarning) {
148  // Resource allocation errors. No such errors are returned during regular requests.
151 };
156 typedef NS_ENUM(int, kNERtcLiveStreamError) {
177 };
178 
179 
180 extern NSString * const NERtcReserveChannelErrorDomain;
181 extern NSString * const NERtcRoomServerErrorDomain;
182 extern NSString * const NERtcLocalErrorDomain;
183 extern NSString * const NERtcRemoteErrorDomain;
184 
185 #ifdef __cplusplus
186 extern "C" {
187 #endif
188 
195  NSString * NERtcErrorDescription(int errorCode);
196 
197 #ifdef __cplusplus
198 } // extern "C"
199 #endif
200 
201 NS_ASSUME_NONNULL_END
kNERtcLiveStreamError
LiveStream Error Code
Definition: NERtcEngineErrorCode.h:156
@ kNERtcLiveStreamErrorRequestIsInvaild
The task request is invalid and overwritten by subsequent operations
Definition: NERtcEngineErrorCode.h:158
@ kNERtcErrLsTaskInvalidLayout
The layout parameter is invalid
Definition: NERtcEngineErrorCode.h:174
@ kNERtcLiveStreamErrorNotFound
The task ID does not exist, or the room does not exist
Definition: NERtcEngineErrorCode.h:168
@ kNERtcErrLsTaskUserPicErr
User picture error
Definition: NERtcEngineErrorCode.h:176
@ kNERtcLiveStreamErrorDuplicateId
Duplicate ID of a streaming task
Definition: NERtcEngineErrorCode.h:166
@ kNERtcLiveStreamErrorRoomExited
The client already leaves the room
Definition: NERtcEngineErrorCode.h:162
@ kNERtcLiveStreamErrorNumLimit
The number of streaming tasks reaches the upper limit.
Definition: NERtcEngineErrorCode.h:164
@ kNERtcLiveStreamErrorInternalServerErr
Server internal error
Definition: NERtcEngineErrorCode.h:172
@ kNERtcLiveStreamErrorIsInvaild
The task parameter has an invalid format
Definition: NERtcEngineErrorCode.h:160
@ kNERtcLiveStreamErrorRequestErr
Request failed
Definition: NERtcEngineErrorCode.h:170
NERtcError
Engine Error Code
Definition: NERtcEngineErrorCode.h:12
@ kNERtcErrServerKicked
Removed from the room.
Definition: NERtcEngineErrorCode.h:116
@ kNERtcRuntimeErrADMStartRecording
Failed to start the audio capture device
Definition: NERtcEngineErrorCode.h:130
@ kNERtcErrDeviceNotFound
Device not found
Definition: NERtcEngineErrorCode.h:48
@ kNERtcErrChannelMediaRelayInvalidState
Invalid status during the media stream relay.
Definition: NERtcEngineErrorCode.h:86
@ kNERtcErrChannelReserveErrorAppKey
Invalid APP KEY
Definition: NERtcEngineErrorCode.h:26
@ kNERtcErrMediaConnectionDisconnected
Media stream disconnected.
Definition: NERtcEngineErrorCode.h:112
@ kNERtcErrChannelNotJoined
A user has not joined the room.
Definition: NERtcEngineErrorCode.h:66
@ kNERtcErrChannelReserveTimeOut
The request timed out
Definition: NERtcEngineErrorCode.h:22
@ kNERtcErrInvalidUserID
Invalid user ID
Definition: NERtcEngineErrorCode.h:76
@ kNERtcErrConnectFail
Connecting server error
Definition: NERtcEngineErrorCode.h:62
@ kNERtcRuntimeErrADMStopPlayout
Failed to stop the audio playback device
Definition: NERtcEngineErrorCode.h:138
@ kNERtcErrInvalidRender
Invalid rendering container
Definition: NERtcEngineErrorCode.h:56
@ kNERtcErrInvalidState
Operations not supported by the current state
Definition: NERtcEngineErrorCode.h:42
@ kNERtcErrChannelReserveErrorParam
Request parameters error
Definition: NERtcEngineErrorCode.h:24
@ kNERtcErrFatal
Common error
Definition: NERtcEngineErrorCode.h:34
@ kNERtcErrChannelLeaveByDuplicateUidLogin
The room was closed due to duplicate uid logins
Definition: NERtcEngineErrorCode.h:122
@ kNERtcErrTransmitPendding
Transmission error
Definition: NERtcEngineErrorCode.h:60
@ kNERtcErrCreateDeviceSourceFail
Device source error
Definition: NERtcEngineErrorCode.h:54
@ kNERtcNoError
No errors
Definition: NERtcEngineErrorCode.h:14
@ kNERtcErrNotSupported
Unsupported operation
Definition: NERtcEngineErrorCode.h:40
@ kNERtcErrEncryptNotSuitable
Failed to join the room because the specified media stream encryption key is inconsistent with the ke...
Definition: NERtcEngineErrorCode.h:102
@ kNERtcErrRequestJoinChannelFail
Fail to join the room.
Definition: NERtcEngineErrorCode.h:70
@ kNERtcErrInvalidDeviceSourceID
Invalid device ID
Definition: NERtcEngineErrorCode.h:50
@ kNERtcErrChannelReserveMoreThanTwoUser
Only two users are supported.
Definition: NERtcEngineErrorCode.h:28
@ kNERtcErrChannelLeaveBySwitchAction
The room was closed due to the operation of switching rooms.
Definition: NERtcEngineErrorCode.h:120
@ kNERtcErrInvalidParam
Invalid parameter
Definition: NERtcEngineErrorCode.h:38
@ kNERtcErrStreamNotFound
Media stream not found
Definition: NERtcEngineErrorCode.h:106
@ kNERtcErrSignalDisconnected
Signaling disconnected.
Definition: NERtcEngineErrorCode.h:114
@ kNERtcErrInvalidVideoProfile
Invalid video profile type
Definition: NERtcEngineErrorCode.h:52
@ kNERtcErrDevicePreviewAlreadyStarted
The device already turned on
Definition: NERtcEngineErrorCode.h:58
@ kNERtcRuntimeErrADMInitRecording
Failed to initialize the audio capture device
Definition: NERtcEngineErrorCode.h:128
@ kNERtcErrSwitchChannelInvalidState
Invalid room status during switching
Definition: NERtcEngineErrorCode.h:82
@ kNERtcRuntimeErrVDMNoAuthorize
Have no video device permissions
Definition: NERtcEngineErrorCode.h:140
@ kNERtcErrChannelAlreadyJoined
A user already joined a room.
Definition: NERtcEngineErrorCode.h:64
@ kNERtcRuntimeErrADMStartPlayout
Failed to start the audio playback device
Definition: NERtcEngineErrorCode.h:136
@ kNERtcErrSourceNotFound
source not found
Definition: NERtcEngineErrorCode.h:80
@ kNERtcErrOSAuthorize
Operating system permissions issue
Definition: NERtcEngineErrorCode.h:124
@ kNERtcErrLackOfResource
Resource exhausted
Definition: NERtcEngineErrorCode.h:44
@ kNERtcErrUserNotFound
User not found
Definition: NERtcEngineErrorCode.h:74
@ kNERtcErrConnectionNotFound
Connection not found.
Definition: NERtcEngineErrorCode.h:104
@ kNERtcErrSessionNotFound
Session not found.
Definition: NERtcEngineErrorCode.h:72
@ kNERtcErrChannelMediaRelayStopFailed
Failed to stop relaying media stream.
Definition: NERtcEngineErrorCode.h:96
@ kNERtcRuntimeErrADMNoAuthorize
have no audio device permissions
Definition: NERtcEngineErrorCode.h:126
@ kNERtcErrOutOfMemory
Out of memory
Definition: NERtcEngineErrorCode.h:36
@ kNERtcErrAddTrackFail
Failed to join track.
Definition: NERtcEngineErrorCode.h:108
@ KNERtcErrChannelReservePermissionDenied
No permissions.
Definition: NERtcEngineErrorCode.h:20
@ kNERtcErrTrackNotFound
Track not found.
Definition: NERtcEngineErrorCode.h:110
@ kNERtcRuntimeErrVDMNotScreenUseSubStream
Use substream without the screen-sharing stream
Definition: NERtcEngineErrorCode.h:142
@ kNERtcErrChannelReserveServerFail
Server error in allocating rooms
Definition: NERtcEngineErrorCode.h:30
@ kNERtcErrInvalidIndex
Invalid index
Definition: NERtcEngineErrorCode.h:46
@ kNERtcRuntimeErrADMStopRecording
Failed to stop the audio capture device
Definition: NERtcEngineErrorCode.h:132
@ kNERtcErrChannelRepleatedlyLeave
A user repeatedly leaves the room.
Definition: NERtcEngineErrorCode.h:68
@ kNERtcRuntimeErrADMInitPlayout
Failed to initialize the audio playback device
Definition: NERtcEngineErrorCode.h:134
@ kNERtcErrMediaNotStarted
Multimedia data is not transmitted.
Definition: NERtcEngineErrorCode.h:78
@ kNERtcErrChannelMediaRelayPermissionDenied
No permissions to relay media stream.
Definition: NERtcEngineErrorCode.h:92
@ kNERtcErrChannelBeClosed
The room is deleted.
Definition: NERtcEngineErrorCode.h:118
NSString *const NERtcReserveChannelErrorDomain
NSString *const NERtcLocalErrorDomain
NSString * NERtcErrorDescription(int errorCode)
Gets the error code description
NSString *const NERtcRemoteErrorDomain
NERtcWarning
Definition: NERtcEngineErrorCode.h:145
@ KNERtcWarningChannelAbilityNotMatch
The video encoding capability of the current client device does not match the encoding support of the...
Definition: NERtcEngineErrorCode.h:150
@ kNERtcNoWarning
No errors
Definition: NERtcEngineErrorCode.h:147
NSString *const NERtcRoomServerErrorDomain