HttpEngineDataSource.OpenException


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


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

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(
    DataSpec dataSpec,
    @PlaybackException.ErrorCode int errorCode,
    int httpEngineConnectionStatus
)
OpenException(
    IOException cause,
    DataSpec dataSpec,
    @PlaybackException.ErrorCode int errorCode,
    int httpEngineConnectionStatus
)
OpenException(
    String errorMessage,
    DataSpec dataSpec,
    @PlaybackException.ErrorCode int errorCode,
    int httpEngineConnectionStatus
)

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

httpEngineConnectionStatus

public final int httpEngineConnectionStatus

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

Public constructors

OpenException

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

OpenException

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

OpenException

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