SessionError

This class represents the errors available for the WatchTogether session.

Field Summary

Type

Field

Int

code - Error code

String

name - Error name

String

message - Error message

Public Constructor Summary

Type

Methods

Parameters

void

SessionError(final int code, final String name, final String message)

  • code - Error number code

  • name - Error name

  • message - Error message

Error codes

Code

Error

Description

-1

UNKNOWN_ERROR

Internal server error

999

GENERIC_ERROR_CODE

The request is not supported

901

GENERIC_CONNECTION_ERROR

The client closed the connection in the middle of the process of joining the room

801

TRANSPORT_REQUEST_ERROR_CODE

Failed to make a request to the media node

802

TRANSPORT_RESPONSE_ERROR_CODE

Invalid response from media node

803

TRANSPORT_ERROR_CODE

  • The request method is not supported

  • Invalid or missing request field

Media Error codes

Code

Error

Description

303

MEDIA_ENDPOINT_ERROR_CODE

  • Already subscribed to media stream from target client

  • SDP exchange for this media stream is already in progress

  • Timeout during SDP exchange

308

MEDIA_AUDIO_PERMISSION_ERROR_CODE

  • Microphone permission is not granted

309

MEDIA_VIDEO_PERMISSION_ERROR_CODE

  • Camera permission is not granted

Session Error codes

Code

Error

Description

206

SESSION_IS_FULL_ERROR_CODE

Exceeded limit of streaming participants in the room

203

SESSION_CLOSED_ERROR_CODE

201

SESSION_GENERIC_ERROR_CODE

  • Unable to handle the request as the Session is locked

  • Active requests counter underflow (Internal server logic)

  • The Session is already locked

User Error codes

Code

Error

Description

106

USER_NOT_AUTHORIZED_ERROR_CODE

  • Attempting to send synchronization data while not having a synchronizer role

  • Invalid oldParticipantSecret during reconnection

105

USER_NOT_STREAMING_ERROR_CODE

  • Attempting to start a stream with no video and audio

  • Attempting to send SDP response when there was no offer

  • Attempting to subscribe to a client that did not publish anything yet

104

EXISTING_USER_IN_SESSION_ERROR_CODE

A Participant tries to join a Session with a name that already exists

103

USER_CLOSED_ERROR_CODE

  • Source or target user has left the Session during the media subscription process

  • Target user has left the Session during SDP exchange

102

USER_NOT_FOUND_ERROR_CODE

  • Attempting to execute request before joining the Session

  • Addressing client that is not in the Session

101

USER_GENERIC_ERROR_CODE

  • Invalid participant type

  • Target client is not is not available while in the process of media (un)subscription

  • ICE candidates queue overflow

Last updated