CronetDataSource.OpenException


@UnstableApi
public final class CronetDataSource.OpenException extends HttpDataSource.HttpDataSourceException


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

Summary

Public fields

final int

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

Public constructors

OpenException(
    IOException cause,
    DataSpec dataSpec,
    int cronetConnectionStatus
)

This method is deprecated.

Use OpenException.

OpenException(
    DataSpec dataSpec,
    @PlaybackException.ErrorCode int errorCode,
    int cronetConnectionStatus
)
OpenException(
    String errorMessage,
    DataSpec dataSpec,
    int cronetConnectionStatus
)

This method is deprecated.

Use OpenException.

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

Inherited Constants

From androidx.media3.datasource.DataSourceException
static final int

This field is deprecated.

Use ERROR_CODE_IO_READ_POSITION_OUT_OF_RANGE.

From androidx.media3.datasource.HttpDataSource.HttpDataSourceException
static final int

The error occurred in closing a HttpDataSource.

static final int

The error occurred reading data from a HttpDataSource.

static final int

The error occurred in opening a HttpDataSource.

Inherited methods

From androidx.media3.datasource.DataSourceException
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.

From androidx.media3.datasource.HttpDataSource.HttpDataSourceException
static HttpDataSource.HttpDataSourceException

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

From java.lang.Throwable
synchronized final void
synchronized Throwable
synchronized Throwable
String
String
StackTraceElement[]
synchronized final Throwable[]
synchronized Throwable
void
void
setStackTrace(StackTraceElement[] stackTrace)
String

Public fields

cronetConnectionStatus

public final int cronetConnectionStatus

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

Public constructors

OpenException

public OpenException(
    IOException cause,
    DataSpec dataSpec,
    int cronetConnectionStatus
)

OpenException

public OpenException(
    DataSpec dataSpec,
    @PlaybackException.ErrorCode int errorCode,
    int cronetConnectionStatus
)

OpenException

public OpenException(
    String errorMessage,
    DataSpec dataSpec,
    int cronetConnectionStatus
)

OpenException

public OpenException(
    IOException cause,
    DataSpec dataSpec,
    @PlaybackException.ErrorCode int errorCode,
    int cronetConnectionStatus
)

OpenException

public OpenException(
    String errorMessage,
    DataSpec dataSpec,
    @PlaybackException.ErrorCode int errorCode,
    int cronetConnectionStatus
)