# ErrorType Enumeration

    public enum ErrorType : Int, CaseIterable

Enumerates all possible error types that may occur within the SDK, including licensing, network, DRM, storage, playback, and other system-level errors.

Each case represents a specific category or scenario where an error might be thrown. These allow detailed handling and easy identification of operational issues.

- `sdk_license_invalid`

  The SDK license is invalid or has not been recognized.

  #### Declaration

  Swift

      case sdk_license_invalid

- `sdk_license_bad_format`

  The SDK license format is malformed or unreadable.

  #### Declaration

  Swift

      case sdk_license_bad_format

- `sdk_license_bad_payload`

  The SDK license payload is corrupted or incorrectly formed.

  #### Declaration

  Swift

      case sdk_license_bad_payload

- `sdk_license_invalid_signature`

  The digital signature of the SDK license did not validate.

  #### Declaration

  Swift

      case sdk_license_invalid_signature

- `sdk_license_bundle_id_mismatch`

  The app’s bundle ID does not match the one registered in the license.

  #### Declaration

  Swift

      case sdk_license_bundle_id_mismatch

- `sdk_license_user_id_not_informed`

  The user ID needed for the license is missing or not provided.

  #### Declaration

  Swift

      case sdk_license_user_id_not_informed

- `sdk_license_missing`

  The required SDK license file is missing.

  #### Declaration

  Swift

      case sdk_license_missing

- `sdk_license_network_error`

  There was a network error when trying to validate or download the SDK license.

  #### Declaration

  Swift

      case sdk_license_network_error

- `sdk_jailbroken_device_detected`

  The device appears to be jailbroken, which is not supported.

  #### Declaration

  Swift

      case sdk_jailbroken_device_detected

- `downloader_id_already_in_use`

  The specified downloader ID is already being used by another process.

  #### Declaration

  Swift

      case downloader_id_already_in_use

- `downloader_id_not_found`

  The downloader ID requested was not found in the system.

  #### Declaration

  Swift

      case downloader_id_not_found

- `downloader_no_content_to_be_removed`

  There is no content to remove—requested delete operation is redundant.

  #### Declaration

  Swift

      case downloader_no_content_to_be_removed

- `downloader_not_available_for_this_format`

  The requested download is not supported for the given format.

  #### Declaration

  Swift

      case downloader_not_available_for_this_format

- `downloader_request_creation_failed`

  Failed to create a download request (possibly due to configuration or input errors).

  #### Declaration

  Swift

      case downloader_request_creation_failed

- `downloader_asset_tracks_cannot_be_loaded`

  Asset tracks could not be loaded, possibly due to missing or corrupt media information.

  #### Declaration

  Swift

      case downloader_asset_tracks_cannot_be_loaded

- `downloader_media_selection_cannot_be_loaded`

  Media selection options could not be loaded during download preparation.

  #### Declaration

  Swift

      case downloader_media_selection_cannot_be_loaded

- `downloader_offline_key_not_retrieved`

  The offline key needed for download was not retrieved successfully.

  #### Declaration

  Swift

      case downloader_offline_key_not_retrieved

- `downloader_cellular_access_disallowed`

  Downloading over cellular data is not allowed by app or system settings.

  #### Declaration

  Swift

      case downloader_cellular_access_disallowed

- `storage_error_while_removing_file`

  An error occurred while removing a file from storage.

  #### Declaration

  Swift

      case storage_error_while_removing_file

- `storage_error_reading`

  An error occurred during file reading operations.

  #### Declaration

  Swift

      case storage_error_reading

- `storage_error_writing`

  An error occurred during file writing operations.

  #### Declaration

  Swift

      case storage_error_writing

- `network_error`

  A generic network error occurred (e.g., connection lost, timeout, etc.).

  #### Declaration

  Swift

      case network_error

- `network_http_bad_status_code`

  HTTP response returned a bad or unexpected status code (not 2xx).

  #### Declaration

  Swift

      case network_http_bad_status_code

- `method_not_implemented`

  The requested method is not implemented or supported in the current context.

  #### Declaration

  Swift

      case method_not_implemented

- `hls_playlist_invalid`

  The HLS playlist is invalid or could not be parsed. DEPRECATED: “Will be removed in 4.1.0, use `manifest_error` instead.”

  #### Declaration

  Swift

      case hls_playlist_invalid

- `manifest_error`

  There was an error in parsing or accessing the manifest file.

  #### Declaration

  Swift

      case manifest_error

- `manifest_url_not_set`

  No manifest URL has been set when one was required.

  #### Declaration

  Swift

      case manifest_url_not_set

- `player_open_error`

  Failed to open the player, likely due to resource or initialization issues.

  #### Declaration

  Swift

      case player_open_error

- `player_resource_unavailable`

  The requested player resource is unavailable (e.g., file missing, access denied).

  #### Declaration

  Swift

      case player_resource_unavailable

- `player_avplayer_error`

  AVPlayer communicated a critical error.

  #### Declaration

  Swift

      case player_avplayer_error

- `player_avplayer_stall`

  AVPlayer has stalled, likely due to buffering or connectivity issues.

  #### Declaration

  Swift

      case player_avplayer_stall

- `drm_fairplay_key_error`

  A FairPlay DRM key error occurred during playback.

  #### Declaration

  Swift

      case drm_fairplay_key_error

- `drm_acquisition_terminated`

  DRM acquisition process was terminated unexpectedly.

  #### Declaration

  Swift

      case drm_acquisition_terminated

- `drm_malformed_request`

  The DRM request was malformed or not as expected by the server.

  #### Declaration

  Swift

      case drm_malformed_request

- `drm_missing_key_uri`

  The URI for the DRM key is missing from the configuration.

  #### Declaration

  Swift

      case drm_missing_key_uri

- `drm_missing_licensing_url`

  Licensing URL required for DRM was not provided.

  #### Declaration

  Swift

      case drm_missing_licensing_url

- `drm_local_internal_error`

  A local (device-side) DRM internal error occurred.

  #### Declaration

  Swift

      case drm_local_internal_error

- `drm_server_internal_error`

  The DRM server reported an internal error.

  #### Declaration

  Swift

      case drm_server_internal_error

- `drm_server_licensing_error`

  The DRM server responded with a licensing error (e.g., invalid license, expired, etc.).

  #### Declaration

  Swift

      case drm_server_licensing_error

- `drm_license_expired`

  The DRM license has expired and is no longer valid.

  #### Declaration

  Swift

      case drm_license_expired

- `drm_second_screen_detected`

  A prohibited second screen (e.g., AirPlay, HDMI output) was detected during playback.

  #### Declaration

  Swift

      case drm_second_screen_detected

- `drm_screen_recording_detected`

  Screen recording was detected, which is disallowed for DRM protected content.

  #### Declaration

  Swift

      case drm_screen_recording_detected

- `drm_unsupported_system`

  The device or platform does not support the required DRM system.

  #### Declaration

  Swift

      case drm_unsupported_system

- `drm_today`

  DRM Today error occurred.

  #### Declaration

  Swift

      case drm_today

- `network_request_cancelled`

  The network request was cancelled by the user or system.

  #### Declaration

  Swift

      case network_request_cancelled

- `system`

  A general system error occurred.

  #### Declaration

  Swift

      case system

- `system_internet_connection_available`

  Internet connection is available.

  #### Declaration

  Swift

      case system_internet_connection_available

- `system_internet_connection_unavailable`

  Internet connection is unavailable.

  #### Declaration

  Swift

      case system_internet_connection_unavailable

- `text_content_invalid`

  The provided text content is invalid or corrupted.

  #### Declaration

  Swift

      case text_content_invalid

- `text_track_already_loaded`

  The requested text track is already loaded and cannot be loaded again.

  #### Declaration

  Swift

      case text_track_already_loaded

- `thumbnails_content_invalid`

  The thumbnails content is invalid or cannot be used.

  #### Declaration

  Swift

      case thumbnails_content_invalid

- `thumbnails_image_missing`

  An expected thumbnail image is missing.

  #### Declaration

  Swift

      case thumbnails_image_missing

- `ads_error`

  An error occurred with the ad system or ad playback.

  #### Declaration

  Swift

      case ads_error

- `cast_error`

  An error occurred when casting content to another device.

  #### Declaration

  Swift

      case cast_error

- `playlist_error`

  An error occurred with the playlist or its parsing.

  #### Declaration

  Swift

      case playlist_error

- `player_behind_live_window`

  Error raised when the current playback position is behind the live edge in a live stream.

  #### Declaration

  Swift

      case player_behind_live_window