Android OpenTV Player SDK  5.15.0.1628598576
 All Classes Namespaces Functions Variables Pages
OTVDownloadError Class Reference

Detailed Description

The download error of a DownloadItem object. The error code is consisted of what and extra. what indicate the main error code and extra provides more detailed error reason.

Public Member Functions

int what ()
 Returns the main error code. More...
 
int extra ()
 Returns the extra error code. More...
 

Static Public Attributes

static final int ERROR_NONE = 0
 Code to indicate no error. More...
 
static final int ERROR_NETWORK = -1000
 Code to indicate any network error. More...
 
static final int ERROR_NETWORK_HTTP_403 = -1001
 Code to indicate network error with HTTP response code 403. More...
 
static final int ERROR_NETWORK_HTTP_404 = -1002
 Code to indicate network error with HTTP response code 404. More...
 
static final int ERROR_NETWORK_HTTP_UNREACHABLE = -1003
 Code to indicate network error with other HTTP response code. More...
 
static final int ERROR_SETUP = -2000
 Code to indicate possible run-time error (better name than setup?) More...
 
static final int ERROR_INSUFFICIENT_DISK_SPACE = -2001
 Code to indicate possible run-time error. More...
 
static final int ERROR_MISSING_PERMISSION = -2002
 Code to indicate possible run-time error. More...
 
static final int ERROR_LICENSE = -3000
 Code to indicate any license error. More...
 
static final int ERROR_FETCH_LICENSE_FAILURE = -3001
 Code to indicate fetch license failure. More...
 
static final int ERROR_STORE_LICENSE_FAILURE = -3002
 Code to indicate the downloaded license is not storable. More...
 
static final int ERROR_CONTENT = -4000
 Code to indicate content related error. More...
 
static final int ERROR_MISFORMATTED_MANIFEST = -4001
 Code to indicate the manifest bad format error. More...
 
static final int ERROR_UNSUPPORTED_MANIFEST = -4002
 Code to indicate the manifest not supported (DASH or HLS LIVE, SmoothStreaming, Unknown Content Type Stream) More...
 
static final int ERROR_STORAGE_ACCESS = -5000
 Code to indicate storage access errors. More...
 
static final int ERROR_PATH_IN_USE = -5001
 Code to indicate can't modify content in path because it is already in use. More...
 
static final int ERROR_UNKNOWN = -10000
 Code to indicate error not defined. More...
 

Member Function Documentation

int extra ( )

Returns the extra error code.

Returns
the error code defined in OTVDownloadError
int what ( )

Returns the main error code.

Returns
the error code defined in OTVDownloadError

Member Data Documentation

final int ERROR_CONTENT = -4000
static

Code to indicate content related error.

final int ERROR_FETCH_LICENSE_FAILURE = -3001
static

Code to indicate fetch license failure.

final int ERROR_INSUFFICIENT_DISK_SPACE = -2001
static

Code to indicate possible run-time error.

final int ERROR_LICENSE = -3000
static

Code to indicate any license error.

final int ERROR_MISFORMATTED_MANIFEST = -4001
static

Code to indicate the manifest bad format error.

final int ERROR_MISSING_PERMISSION = -2002
static

Code to indicate possible run-time error.

final int ERROR_NETWORK = -1000
static

Code to indicate any network error.

final int ERROR_NETWORK_HTTP_403 = -1001
static

Code to indicate network error with HTTP response code 403.

final int ERROR_NETWORK_HTTP_404 = -1002
static

Code to indicate network error with HTTP response code 404.

final int ERROR_NETWORK_HTTP_UNREACHABLE = -1003
static

Code to indicate network error with other HTTP response code.

final int ERROR_NONE = 0
static

Code to indicate no error.

final int ERROR_PATH_IN_USE = -5001
static

Code to indicate can't modify content in path because it is already in use.

final int ERROR_SETUP = -2000
static

Code to indicate possible run-time error (better name than setup?)

final int ERROR_STORAGE_ACCESS = -5000
static

Code to indicate storage access errors.

final int ERROR_STORE_LICENSE_FAILURE = -3002
static

Code to indicate the downloaded license is not storable.

final int ERROR_UNKNOWN = -10000
static

Code to indicate error not defined.

final int ERROR_UNSUPPORTED_MANIFEST = -4002
static

Code to indicate the manifest not supported (DASH or HLS LIVE, SmoothStreaming, Unknown Content Type Stream)