SDK Error Codes and Exceptions

The following is a list of error codes and exceptions that may be encountered while using the SDK.

Authentication Errors

AUTHENTICATION_FAILED

  • Code: TSL.AUTHENTICATION_FAILED
  • Description: Failed to authenticate.

AUTHENTICATION_EXCEPTION

  • Code: TSL.AUTHENTICATION_EXCEPTION
  • Description: Exception during authentication.

USER_ALREADY_AUTHENTICATED

  • Code: TSL.USER_ALREADY_AUTHENTICATED
  • Description: User already authenticated.

PERMISSION_DENIED

  • Code: TSL.PERMISSION_DENIED
  • Description: Permission denied.

Show Errors

SHOW_NOT_FOUND

  • Code: TSL.SHOW_NOT_FOUND
  • Description: Wrong Show key.

SHOW_UNKNOWN_EXCEPTION

  • Code: TSL.SHOW_UNKNOWN_EXCEPTION
  • Description: Unknown exception in Show.

EVENT_NOT_FOUND

  • Code: TSL.EVENT_NOT_FOUND
  • Description: Wrong Show Key.

EVENT_UNKNOWN_EXCEPTION

  • Code: TSL.EVENT_UNKNOWN_EXCEPTION
  • Description: Unknown exception in Event.

Messaging Errors

INVALID_USER_TOKEN

  • Code: TSL.INVALID_USER_TOKEN
  • Description: Messaging Token Invalid.

USER_TOKEN_EXCEPTION

  • Code: TSL.USER_TOKEN_EXCEPTION
  • Description: Unknown user token exception.

CHANNEL_SUBSCRIPTION_FAILED

  • Code: TSL.CHANNEL_SUBSCRIPTION_FAILED
  • Description: Failed to subscribe to channel.

MESSAGE_SENDING_FAILED

  • Code: TSL.MESSAGE_SENDING_FAILED
  • Description: Failed to send message.

MESSAGE_LIST_FAILED

  • Code: TSL.MESSAGE_LIST_FAILED
  • Description: Failed to fetch message history.

UNKNOWN_EXCEPTION

  • Code: TSL.UNKNOWN_EXCEPTION
  • Description: Unknown exception occurred.

MESSAGE_ERROR_MESSAGE_MAX_LENGTH

  • Code: TSL.MESSAGE_ERROR_MESSAGE_MAX_LENGTH
  • Description: Publishing Error: Message exceeds maximum length of 200 characters.

Chat Errors

CHAT_CONNECTION_ERROR

  • Code: TSL.CHAT_CONNECTION_ERROR
  • Description: Cannot reconnect to chat due to network issues.

CHAT_TOKEN_EXPIRED

  • Code: TSL.CHAT_TOKEN_EXPIRED
  • Description: The chat token has expired.

CHAT_TIMEOUT

  • Code: TSL.CHAT_TIMEOUT
  • Description: The chat you're trying to connect to has timed out.

SHOW_NOT_LIVE

  • Code: TSL.SHOW_NOT_LIVE
  • Description: The show is not live.