Skip to main content

9. Download Error Codes

Notice

This document is a machine-translated draft and is currently undergoing review. Some content may be inaccurate or differ from the original Korean version. For the most precise information, refer to the Korean documentation.

SDK error codes

Core error code specifications and specific trigger points defined in the com.kollus.sdk.media.util.ErrorCodes class.

ConstantDescriptionTrigger
ERROR_OKCompleted successfully
ERROR_INCORRECT_AUTH_KEYSDK key expired/invalidWhen calling initialize or the authentication method (setCertification)
ERROR_UNSUPPORTED_DEVICEUnsupported deviceWhen registering device information (setDevice) or when DRM compatibility validation fails
ERROR_STORAGE_FULLInsufficient storage spaceWhen starting metadata load (load) or file download (download)
ERROR_WRITE_FILEFile write errorWhen a disk I/O error occurs during download
ERROR_ALREADY_DOWNLOADINGDuplicate download requestWhen download(mck) is called for the same content
ERROR_ALREADY_DOWNLOADEDContent already downloadedWhen download(mck) is called for already downloaded content
ERROR_NOT_EXIST_DOWNLOADED_CONTENTSNo locally downloaded file foundWhen calling getDownloadKollusContent(path) or during offline playback
ERROR_EXPIRATION_DATEExpiration date exceededWhen attempting offline playback
ERROR_EXPIRATION_PLAY_TIMEAllowed playback time exceededWhen attempting offline playback
ERROR_EXPIRATION_COUNTAllowed playback count exceededWhen attempting offline playback
ERROR_FORCE_DELETEContent forcibly deleted via DRM callback kind2 or kind3 responseWhen DCB_INFO_DELETE signal is detected inside the onDRMInfo callback

External SDK errors

Error handling patterns that may occur due to mobile operating system policies or network errors, outside of SDK internal logic.

  • Storage permission denied: Configure SecurityException or IOException exception handling at the app layer. Verify the permission declaration status in the manifest and the runtime permission acquisition flow.
  • Network connection failure: The SDK automatically retries. The automatic retry threshold can be adjusted with storage.setNetworkTimeout(timeout, retryCount), and a setting of setNetworkTimeout(30, 3) (30 seconds, 3 retries) is recommended.
  • Background force termination: If a foreground service is not applied, the operating system may arbitrarily terminate the download process. The FOREGROUND_SERVICE_TYPE_DATA_SYNC attribute must be used together. (See Also: 1. 다운로드 준비)

Error codeExample user message
ERROR_INCORRECT_AUTH_KEY"An issue occurred with app authentication. Please update the app to the latest version."
ERROR_STORAGE_FULL"Your device is running low on storage space. Please delete downloaded files you have finished watching or free up storage space."
ERROR_WRITE_FILE"Failed to save the file. Please try again later."
ERROR_EXPIRATION_*"The content viewing period has expired. Please connect to a network to renew the license."
ERROR_UNSUPPORTED_DEVICE"Content cannot be downloaded or played on this device."