CronetDataSource.OpenException


@UnstableApi
class CronetDataSource.OpenException : HttpDataSource.HttpDataSourceException


Thrown when an error is encountered when trying to open a CronetDataSource.

Summary

Public constructors

OpenException(
    cause: IOException!,
    dataSpec: DataSpec!,
    cronetConnectionStatus: Int
)

This function is deprecated.

Use OpenException.

OpenException(
    dataSpec: DataSpec!,
    @PlaybackException.ErrorCode errorCode: Int,
    cronetConnectionStatus: Int
)
OpenException(
    errorMessage: String!,
    dataSpec: DataSpec!,
    cronetConnectionStatus: Int
)

This function is deprecated.

Use OpenException.

OpenException(
    cause: IOException!,
    dataSpec: DataSpec!,
    @PlaybackException.ErrorCode errorCode: Int,
    cronetConnectionStatus: Int
)
OpenException(
    errorMessage: String!,
    dataSpec: DataSpec!,
    @PlaybackException.ErrorCode errorCode: Int,
    cronetConnectionStatus: Int
)

Public properties

Int

Returns the status of the connection establishment at the moment when the error occurred, as defined by UrlRequest.Status.

Inherited Constants

const Int

This property is deprecated.

Use ERROR_CODE_IO_READ_POSITION_OUT_OF_RANGE.

const Int

The error occurred in closing a HttpDataSource.

const Int

The error occurred reading data from a HttpDataSource.

const Int

The error occurred in opening a HttpDataSource.

Inherited functions

java-static Boolean

Returns whether the given IOException was caused by a DataSourceException whose reason is ERROR_CODE_IO_READ_POSITION_OUT_OF_RANGE in its cause stack.

java-static HttpDataSource.HttpDataSourceException!

Returns a HttpDataSourceException whose error code is assigned according to the cause and type.

Public constructors

OpenException

OpenException(
    cause: IOException!,
    dataSpec: DataSpec!,
    cronetConnectionStatus: Int
)

OpenException

OpenException(
    dataSpec: DataSpec!,
    @PlaybackException.ErrorCode errorCode: Int,
    cronetConnectionStatus: Int
)

OpenException

OpenException(
    errorMessage: String!,
    dataSpec: DataSpec!,
    cronetConnectionStatus: Int
)

OpenException

OpenException(
    cause: IOException!,
    dataSpec: DataSpec!,
    @PlaybackException.ErrorCode errorCode: Int,
    cronetConnectionStatus: Int
)

OpenException

OpenException(
    errorMessage: String!,
    dataSpec: DataSpec!,
    @PlaybackException.ErrorCode errorCode: Int,
    cronetConnectionStatus: Int
)

Public properties

cronetConnectionStatus

val cronetConnectionStatusInt

Returns the status of the connection establishment at the moment when the error occurred, as defined by UrlRequest.Status.