ErrorCodes
ErrorCodes Class
com.kollus.sdk.media.util.ErrorCodes
A class that defines and manages error codes for all exceptional situations that occur during Kollus SDK execution, including playback, download, security, and network errors.
Public Methods
String getErrorString(int errorCode)
Static Public Methods
static synchronized ErrorCodes getInstance(Context context)
Protected Properties
final Context mContextfinal Map<Integer, CodeBook> mCodeBooks
Method Details
String com.kollus.sdk.media.util.ErrorCodes.getErrorString(int errorCode)
Returns a detailed description message for a specific error code.
- Parameters
errorCode: Error code
- Returns: Error message
static synchronized ErrorCodes com.kollus.sdk.media.util.ErrorCodes.getInstance(Context context)
Returns the singleton instance of ErrorCodes. An application context is required to load error message resources.
- Parameters
context: Application context
- Returns:
ErrorCodesinstance
Property Details
| Property | Error Code | Description |
|---|---|---|
ERROR_OK | 0 | Successful processing |
ERROR_UNDEFINED_CODE | -1000 | Unknown system error |
MEDIA_ERROR_IO | -1004 | File or network input/output (I/O) error |
MEDIA_ERROR_MALFORMED | -1007 | Media stream format mismatch |
ERROR_UNSUPPORTED | -1010 | Unsupported content format |
ERROR_UNSUPPORTED_DEVICE | -1015 | Unsupported device |
ERROR_CODEC_DECODE | -1103 | Decoding failure |
ERROR_CHECK_SETTING_NOT_SW_CODEC | -1104 | Software codec setting not followed |
ERROR_SERVER_BLACK_OUT | -1105 | Network connection error during live stream |
ERROR_ALREADY_DOWNLOADED | -1631 | Content already downloaded |
ERROR_TMCM_INIT | -2001 | Security module (Teruten) initialization error |
ERROR_TMCM_ROOTING | -2002 | OS privilege tampering (rooting) detected |
ERROR_TMCM_EMULATOR | -2003 | Virtual environment execution detected in security module |
ERROR_EMURATOR | -2004 | Emulator environment execution detected |
ERROR_EMURATOR_VIA_DEVICE | -2005 | Bypassed emulator execution via device detected |
ERROR_UNKNOWN_MULTI_DRM | -2100 | Unknown error occurred during Multi DRM processing |
ERROR_INCORRECT_PACKAGE_NAME | -2103 | Invalid application package name provided during KollusStorage initialization |
ERROR_EXPIRED_AUTH_DATE | -2104 | SDK usage period expired during KollusStorage initialization |
ERROR_INCORRECT_AUTH_DATE | -2105 | SDK usage period input format mismatch during KollusStorage initialization |
ERROR_INCORRECT_AUTH_KEY | -2106 | Invalid SDK authentication key used during KollusStorage initialization |
ERROR_NOT_ENOUGH_AUTH_INFO | -2107 | Required authentication information missing during KollusStorage initialization |
ERROR_LIVE_NOT_BROADCASTING | -3012 | Live stream is not broadcasting |
ERROR_DUPLICATION_BLOCK_OR_EXPIRED_TIME_MEDIA_KEY | -3013 | Concurrent playback blocked or media key time expired |
ERROR_INVALID_MEDIA_CONTENT_KEY | -4001 | Invalid media content key |
ERROR_INVALID_SECURITY_KEY | -4002 | Invalid security key |
ERROR_INVALID_CHANNEL_KEY | -4003 | Invalid channel identification key |
ERROR_INVALID_USER_KEY | -4004 | Invalid user identification key |
ERROR_INVALID_TRANSCODING_FILE_PATH | -4005 | Transcoding file path specification error |
ERROR_INVALID_ALIAS_KEY | -4006 | Invalid alias key |
ERROR_INVALID_JWT | -4007 | Invalid JWT token format |
ERROR_INVALID_MEDIA_TOKEN | -4008 | Invalid media authentication token |
ERROR_NO_TRANSCODING_FILE | -4011 | Requested transcoding file not found |
ERROR_NO_MEDIA_CONTENT | -4012 | Requested media content data not found |
ERROR_NO_CONTENT_OWNER | -4013 | Content owner information cannot be verified |
ERROR_NO_CONTENT_DISTRIBUTOR | -4014 | Content distributor information cannot be verified |
ERROR_NO_CHANNEL | -4015 | Requested channel information not found |
ERROR_NO_PAYMENT | -4016 | Payment information cannot be verified |
ERROR_NO_DEFAULT_MAIN_SITE | -4019 | Default main site configuration not found |
ERROR_NO_MAIN_MEDIA_CONTENT | -4020 | Main media content not found |
ERROR_UNAVAILABLE_TRANSCODING_FILE | -4021 | Transcoding file in unavailable state |
ERROR_UNAVAILABLE_MEDIA_CONTENT | -4022 | Media content in unavailable state |
ERROR_UNAVAILABLE_CONTENT_OWNER | -4023 | Content owner account is deactivated |
ERROR_UNAVAILABLE_CONTENT_DISTRIBUTOR | -4024 | Content distributor account is deactivated |
ERROR_UNAVAILABLE_CHANNEL | -4025 | Channel in unavailable state |
ERROR_UNAVAILABLE_CHANNEL_DISTRIBUTION | -4026 | Channel distribution policy violation or suspension |
ERROR_NOT_ALLOWED_REFERER | -4031 | Access from unauthorized domain (Referer) |
ERROR_NOT_ALLOWED_ACCESS_FOR_BLOCKING_CAPTURE | -4032 | Access denied due to capture prevention policy |
ERROR_NOT_PUBLIC_SHARED_CHANNEL | -4081 | Attempted access to a private shared channel |
ERROR_MISMATCH_USER_KEY | -4082 | User identification key mismatch |
ERROR_ACCESS_WITHOUT_MEDIA_CONTENT_KEY | -4083 | Attempted access without media content key |
ERROR_NOT_SUPPORT_DEVICE | -4084 | Unsupported device |
ERROR_TOKEN_EXPIRED | -4085 | Authentication token validity period expired |
ERROR_NETWORK_CON_TIMEOUT | -4105 | Network Timeout |
ERROR_MULTI_DRM_EXPIRED | -7000 | Multi DRM license validity period expired |
ERROR_INVALID_CRYPTO_KEY | -7001 | Invalid encryption key used |
ERROR_WIDEVINE_NOT_SUPPORT | -7109 | Device does not support Widevine DRM |
ERROR_STORAGE_MANAGER_BASE | -8000 | Base value for all error codes generated by the storage manager |
ERROR_CURLE_COULDNT_RESOLVE_HOST | -8006 | Host name resolution failure (DNS error) |
ERROR_CURLE_COULDNT_CONNECT | -8007 | Failed to establish physical connection to server |
ERROR_CURLE_PARTIAL_FILE | -8018 | Partial data loss during transfer (size mismatch) |
ERROR_CURLE_OPERATION_TIMEDOUT | -8028 | Network Timeout |
ERROR_CURLE_RECV_ERROR | -8056 | Error occurred during data reception |
ERROR_BAD_REQUEST | -8400 | Malformed request syntax (HTTP 400) |
ERROR_UNAUTHORIZED_1 | -8401 | Unauthorized (HTTP 401-1) |
ERROR_UNAUTHORIZED_2 | -8402 | Unauthorized (HTTP 401-2) |
ERROR_FORBIDDEN | -8403 | Access forbidden (HTTP 403) |
ERROR_NOT_EXIST_FILE | -8404 | Requested file resource not found (HTTP 404) |
ERROR_METHOD_NOT_ALLOWED | -8405 | HTTP method not allowed (HTTP 405) |
ERROR_REQUEST_URL | -8461 | Request URL parsing error |
ERROR_GET_USER_IP | -8462 | Failed to retrieve valid user IP information |
ERROR_ACCESS_DENIED_FOLDER | -8463 | Access denied to folder requiring authentication |
ERROR_DUPLICATION_BLOCK_PROCESS | -8464 | Error occurred during duplicate blocking process |
ERROR_VERIFY_MEDIA_KEY | -8465 | Media key verification error |
ERROR_REQEST_URL_BLOCK | -8466 | Request URL blocked by security policy |
ERROR_MEDIA_KEY_TIME_EXPIRE | -8467 | Media key validity time expired |
ERROR_MEDIA_DOMAIN_VALIDATE | -8468 | Media domain validation error |
ERROR_HEAVY_REQUEST | -8469 | Request rejected due to excessive requests (Heavy Request) |
ERROR_PLYMENT | -8470 | Payment authentication error (Payment Error) |
ERROR_GEO_RESTRICTION | -8471 | Access blocked from country where service is not permitted |
ERROR_PREVIEW_ERROR | -8472 | Preview processing error |
ERROR_USER_KEY | -8473 | Invalid user key information |
ERROR_CONTENT_NOT_PUBLIC_CHANNEL | -8474 | Content channel is in private state |
ERROR_USED_MEDIA_KEY | -8475 | Attempted reuse of an already used media key |
ERROR_MAX_REQUEST_SIZE | -8476 | Maximum request length exceeded for authentication verification |
ERROR_DIFFERENT_ES_KEY | -8477 | Mismatch between request key and system stored key |
ERROR_ACCESS_DENIED_MEMCACHE_SERVER | -8478 | Unable to set key due to local memcache server connection error |
ERROR_DUPLICATION_BLOCK_MEDIA_KEY | -8479 | Media key rejected by concurrent blocking policy |
ERROR_NOT_NORMAL_REQUEST_VIDEO_GATEWAY | -8480 | Abnormal request not routed through Video Gateway |
ERROR_INTERNAL_SERVER | -8500 | Internal server logic processing error (HTTP 500) |
ERROR_NOT_IMPLEMENTED | -8501 | Unimplemented service request (HTTP 501) |
ERROR_BAD_GATEWAY | -8502 | Gateway and server overload state (HTTP 502) |
ERROR_SERVICE_UNAVAILABLE | -8503 | Service temporarily unavailable (HTTP 503) |
ERROR_GATEWAY_TIMEOUT | -8504 | Server response timeout (HTTP 504) |
ERROR_HTTP_VERSION_NOT_SUPPORTED | -8505 | Unsupported HTTP protocol version |
ERROR_CREATE_DIRECTORY | -8600 | Directory creation failure |
ERROR_CREATE_FILE | -8601 | File creation failure |
ERROR_SAVE_DATA | -8602 | Data save failure |
ERROR_OPEN_DB | -8603 | DB file open failure |
ERROR_CREATE_TABLE | -8604 | DB table creation failure |
ERROR_SELECT_TABLE | -8605 | DB table query execution failure |
ERROR_DELETE_RECORD | -8606 | DB record deletion failure |
ERROR_INSERT_RECORD | -8607 | DB record insertion failure |
ERROR_OPEN_FILE | -8608 | File open failure |
ERROR_OUT_OF_MEMORY | -8609 | System memory allocation failure |
ERROR_READ_FILE | -8610 | File read operation failure |
ERROR_WRITE_FILE | -8611 | File write operation failure |
ERROR_PARAM_VALUE | -8613 | Input parameter format mismatch |
ERROR_NOT_LOAD | -8614 | Content load state verification failure |
ERROR_CANCEL_DOWNLOAD | -8615 | Content download cancelled |
ERROR_GET_CONTENTS_LENGTH | -8617 | Failed to retrieve content length information |
ERROR_GET_ENCODE_LEVEL | -8618 | Failed to retrieve content encoding level information |
ERROR_GET_MEDIA_URL | -8619 | Failed to retrieve streaming media URL |
ERROR_NOT_FOUND_DATA | -8620 | Requested internal data block not found |
ERROR_NOT_FOUND_ID | -8621 | Matching content ID not found |
ERROR_DECODE_HEADER | -8622 | Failed to decrypt encrypted response header |
ERROR_STORAGE_FULL | -8623 | Insufficient device storage space |
ERROR_UPDATE_RECORD | -8624 | DB record update failure |
ERROR_NOT_FOUND_SNAPSHOT_FILENAME | -8626 | Snapshot filename not found |
ERROR_NOT_FOUND_THUMBNAIL_FILENAME | -8627 | Thumbnail filename not found |
ERROR_NOT_FOUND_RECORD | -8628 | Target record not found in DB |
ERROR_NOT_DOWNLOAD_COMPLETE_ALL | -8629 | Accessed content while download is incomplete |
ERROR_NOT_DOWNLOAD_TYPE | -8630 | Requested content type is not downloadable |
ERROR_ALREADY_DOWNLOADING | -8631 | Download is already active |
ERROR_DECRYPT_CONTENT_INFO_LINK | -8632 | Failed to decrypt content info link |
ERROR_PARSE_CONTENT_INFO_LINK | -8633 | Failed to parse content info link JSON |
ERROR_DECRYPT_COMPANY_AUTH_INFO | -8634 | Failed to decrypt company authentication information |
ERROR_PARSE_COMPANY_AUTH_INFO | -8635 | Failed to parse company authentication information JSON |
ERROR_NOT_VAILD_COMPANY_AUTH_INFO | -8636 | Company authentication information format validation failure |
ERROR_NO_USE_CONTENT_URL | -8637 | Requested content URL is unavailable |
ERROR_NOT_EXIST_DOWNLOADED_CONTENTS | -8638 | No downloaded content found locally |
ERROR_EXPIRATION_DATE | -8643 | Content playback validity period expired |
ERROR_EXPIRATION_COUNT | -8644 | Maximum allowed content playback count exceeded |
ERROR_REQUEST_CONTENT_URL | -8645 | Error requesting content URL for resume download |
ERROR_NOT_VAILD_CONTENTS_INFO | -8646 | Content metadata information corrupted |
ERROR_CREATE_NO_MEDIA_FILE | -8647 | Failed to create gallery exposure prevention file (.nomedia) |
ERROR_DECRYPT | -8649 | Failed to decrypt encrypted string |
ERROR_NOT_ALLOW_DOWNLOAD | -8650 | No download permission for the specified path |
ERROR_EMPTY_COMPANY_AUTH_INFO | -8651 | Failed to receive AUTH information from authentication server |
ERROR_EMPTY_CONTENT_INFO | -8652 | Failed to receive content data |
ERROR_NOT_FOUND_DOMAIN | -8653 | Request domain does not match edge server domain |
ERROR_NOT_RECEIVE_DOMAIN | -8654 | Failed to receive domain list from server |
ERROR_ABNORMAL_DRM_INFO | -8655 | Abnormal response received for DRM information request |
ERROR_ABNORMAL_DRM_COMPLETE | -8656 | Failed to receive DRM processing completion response |
ERROR_ABNORMAL_DRM_PLAY | -8657 | DRM playback approval processing failure |
ERROR_FORCE_EXPIRED | -8658 | Force expiration by server policy after DRM download callback (kind3) |
ERROR_NOT_RECEIVE_ENC_DATA | -8659 | Failed to receive encrypted data (XHTTP_ENC_DATA) |
ERROR_NOT_FOUND_MOBILE_LOGO_FILENAME | -8660 | Logo filename not found in logo file path |
ERROR_CANNOT_CALL_API | -8661 | API call unavailable due to internal object termination |
ERROR_NOT_FOUND_THUMBNAIL_URL | -8662 | Thumbnail URL not found in media information |
ERROR_ALTER_TABLE | -8663 | DB table structure modification failure |
ERROR_DIFFERENT_TIME | -8664 | Time synchronization error between device and server |
ERROR_EMPTY_POSTER_UPLOAD_FILE_INFO | -8665 | Poster upload response data not found |
ERROR_PARSE_POSTER_UPLOAD_FILE_INFO | -8666 | Failed to parse poster upload response data |
ERROR_NOT_FOUND_POSTER_URL | -8667 | Poster URL not found in media information |
ERROR_GET_MEDIA_ID | -8668 | Failed to retrieve media ID from server |
ERROR_NOT_FOUND_SUBTITLE_FILENAME | -8669 | Subtitle filename not found in subtitle URL |
ERROR_EMPTY_PLAY_CALLBACK_INFO | -8670 | Playback callback response data not found |
ERROR_DECRYPT_PLAY_CALLBACK_INFO | -8671 | Failed to decrypt playback callback data |
ERROR_PARSE_PLAY_CALLBACK_INFO | -8672 | Failed to parse playback callback data JSON |
ERROR_ABNORMAL_PLAY_CALLBACK_INFO | -8673 | Playback callback result error received (kind1) |
ERROR_PLAY_CALLBACK_EXPIRED | -8674 | Forced playback expiration by playback callback (kind3) response |
ERROR_ABNORMAL_PLAY_CALLBACK_INFO_PLAY | -8675 | Playback callback (kind3) result error received |
ERROR_ABNORMAL_UPLOAD_POSTER_INFO | -8676 | Server-side poster upload processing failure |
ERROR_GET_CONTENT_TYPE | -8677 | Failed to retrieve Content-Type from edge server |
ERROR_GET_CONTENT_LAST_MODIFIED | -8678 | Failed to retrieve last modified date from edge server |
ERROR_ENCRYPT_KEY | -8679 | Encryption key generation failure |
ERROR_FORCE_DELETE | -8680 | Force deletion of local content requested by DRM download callback server policy |
ERROR_DIFFERENT_EXPIRE_RESET | -8681 | Failed to update expiration information due to DRM download callback session mismatch |
ERROR_NOT_FOUND_DRM_KIND | -8682 | DRM type identification information not found |
ERROR_EXPIRATION_PLAY_TIME | -8683 | Allowed cumulative playback time exceeded |
ERROR_PLAY_CALLBACK_EXPIRATION_PLAY_TIME | -8686 | Playback time expired by playback callback policy |
ERROR_CHECK_EXPIRATION_DATE | -8687 | Downloaded content validity period expired at time of playback |
ERROR_NOT_FOUND_COMMON_INFO | -8800 | Common metadata not found in playlist |
ERROR_NOT_FOUND_ITEM_IN_PLAYLIST | -8801 | Target content not found in playlist |
ERROR_EMPTY_PLAYLIST_INFO | -8802 | Failed to receive playlist data |
ERROR_INTRO_CANNOT_DOWNLOAD | -8803 | Download attempt for intro video rejected |
INFO_NETWORK_TIMEOUT | -8899 | Internal information for retry on network Timeout |
ERROR_VIDEO_GATEWAY_ABNORMAL_RESPONSE | -8900 | Abnormal status response received from Video Gateway |