OTSessionErrorCode
Enumerations of error code values used by [OTSessionDelegate session:didFailWithError:].
Constants
| Name | Description |
|---|---|
OTSessionSuccess |
Ignore. |
OTAuthorizationFailure |
An invalid API key or token was provided |
OTErrorInvalidSession |
An invalid session ID was provided |
OTConnectionFailed |
There was an error connecting to OpenTok services |
OTNullOrInvalidParameter |
A parameter passed in to the request is null or invalid. |
OTNotConnected |
The session is not connected, and the requested action requires an active session connection |
OTSessionIllegalState |
A method has been invoked at an illegal or inappropriate time for this session. |
OTNoMessagingServer |
No messaging server is available for this session |
OTConnectionRefused |
A socket could not be opened to the messaging server. |
OTSessionStateFailed |
The connection timed out while attempting to get the session's state |
OTP2PSessionMaxParticipants |
A session with the media mode set to routed can only have two participants. |
OTSessionConnectionTimeout |
The connection timed out while attempting to connect to the session. |
OTSessionInternalError |
Thread dispatch failure, out of memory, parse error, etc. |
OTSessionInvalidSignalType |
You attempted to send a signal with an invalid type. |
OTSessionSignalDataTooLong |
You attempted to send a signal with a data string that is greater than the maximum length (8KB). |
OTSessionUnableToForceDisconnect |
Unable to force disconnect, perhaps because the client's capabilities are limited. |
OTSessionUnableToForceMute |
Unable to force mute, perhaps because the client's capabilities are limited. |
OTSessionUnableToSendSignal |
Unable to send signal, perhaps because the client's capabilities are limited (e.g., a publisher-only token). |
OTConnectionDropped |
The connection to the OpenTok messaging server was dropped.. |
OTSessionSubscriberNotFound |
The subscriber is unknown to this session. |
OTSessionPublisherNotFound |
The publisher is unknown to this session. |
OTSessionBlockedCountry |
Unable to connect to the session. |
OTSessionConnectionLimitExceeded |
The client tried to connect to a session that has exceeded the limit for simultaneous connections. |
OTSessionEncryptionSecretMissing |
Tried to join an end-to-end encrypted session without an encryption secret |
OTSessionInvalidEncryptionSecret |
Tried to set an invalid encryption secret |
OTSessionEncryptionNotEnabled |
An encryption secret was set, but the session was not configured as end-to-end encrypted. |