OTSessionErrorCode Constants Reference
Declared in | OTError.h |
---|
OTSessionErrorCode
Enumerations of error code values used by [OTSessionDelegate session:didFailWithError:].
Definition
typedef NS_ENUM(int32_t, OTSessionErrorCode ) {
OTSessionSuccess = 0,
OTAuthorizationFailure = 1004,
OTErrorInvalidSession = 1005,
OTConnectionFailed = 1006,
OTNullOrInvalidParameter = 1011,
OTNotConnected = 1010,
OTSessionIllegalState = 1015,
OTNoMessagingServer = 1503,
OTConnectionRefused = 1023,
OTSessionStateFailed = 1020,
OTP2PSessionMaxParticipants = 1403,
OTSessionConnectionTimeout = 1021,
OTSessionInternalError = 2000,
OTSessionInvalidSignalType = 1461,
OTSessionSignalDataTooLong = 1413,
OTSessionUnableToForceMute = 1540,
OTConnectionDropped = 1022,
OTSessionSubscriberNotFound = 1112,
OTSessionPublisherNotFound = 1113,
OTSessionBlockedCountry = 1026,
OTSessionConnectionLimitExceeded = 1027,
OTSessionEncryptionSecretMissing = 6000,
OTSessionInvalidEncryptionSecret = 6004,
};
Constants
OTSessionSuccess
-
Ignore. Used internally.
Declared In
OTError.h
. OTAuthorizationFailure
-
An invalid API key or token was provided
Declared In
OTError.h
. OTErrorInvalidSession
-
An invalid session ID was provided
Declared In
OTError.h
. OTConnectionFailed
-
There was an error connecting to OpenTok services
Declared In
OTError.h
. OTNullOrInvalidParameter
-
A parameter passed in to the request is null or invalid.
Declared In
OTError.h
. OTNotConnected
-
The session is not connected, and the requested action requires an active session connection
Declared In
OTError.h
. OTSessionIllegalState
-
A method has been invoked at an illegal or inappropriate time for this session. For example, attempting to connect an already connected session will return this error.
Declared In
OTError.h
. OTNoMessagingServer
-
No messaging server is available for this session
Declared In
OTError.h
. OTConnectionRefused
-
A socket could not be opened to the messaging server. Check that outbound ports 443 and 8080 are accessible.
Declared In
OTError.h
. OTSessionStateFailed
-
The connection timed out while attempting to get the session’s state
Declared In
OTError.h
. OTP2PSessionMaxParticipants
-
A session with the media mode set to routed can only have two participants.
Declared In
OTError.h
. OTSessionConnectionTimeout
-
The connection timed out while attempting to connect to the session.
Declared In
OTError.h
. OTSessionInternalError
-
Thread dispatch failure, out of memory, parse error, etc.
Declared In
OTError.h
. OTSessionInvalidSignalType
-
You attempted to send a signal with an invalid type.
Declared In
OTError.h
. OTSessionSignalDataTooLong
-
You attempted to send a signal with a data string that is greater than the maximum length (8KB).
Declared In
OTError.h
. OTSessionUnableToForceMute
-
Unable to force mute, perhaps because the client’s capabilities are limited.
Declared In
OTError.h
. OTConnectionDropped
-
The connection to the OpenTok messaging server was dropped..
Declared In
OTError.h
. OTSessionSubscriberNotFound
-
The subscriber is unknown to this session. This is usually the result of attempting to unsubscribe a subscriber that is not associated with the session.
Declared In
OTError.h
. OTSessionPublisherNotFound
-
The publisher is unknown to this session. This is usually the result of attempting to unpublish a publisher that is not associated with the session.
Declared In
OTError.h
. OTSessionBlockedCountry
-
Unable to connect to the session. Terms of service violation: export compliance.
Declared In
OTError.h
. OTSessionConnectionLimitExceeded
-
The client tried to connect to a session that has exceeded the limit for simultaneous connections.
Declared In
OTError.h
. OTSessionEncryptionSecretMissing
-
Tried to join an end-to-end encrypted session without an encryption secret
Declared In
OTError.h
. OTSessionInvalidEncryptionSecret
-
Tried to set an invalid encryption secret
Declared In
OTError.h
.
Declared In
OTError.h