public final class

HttpEngineDataSource.OpenException

extends HttpDataSource.HttpDataSourceException

 java.lang.Object

↳java.lang.Throwable

↳java.lang.Exception

↳java.io.IOException

androidx.media3.datasource.DataSourceException

androidx.media3.datasource.HttpDataSource.HttpDataSourceException

↳androidx.media3.datasource.HttpEngineDataSource.OpenException

Overview

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

Summary

Fields
public final inthttpEngineConnectionStatus

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

from HttpDataSource.HttpDataSourceExceptiondataSpec, type, TYPE_CLOSE, TYPE_OPEN, TYPE_READ
from DataSourceExceptionPOSITION_OUT_OF_RANGE, reason
Constructors
publicOpenException(DataSpec dataSpec, int errorCode, int httpEngineConnectionStatus)

publicOpenException(java.io.IOException cause, DataSpec dataSpec, int errorCode, int httpEngineConnectionStatus)

publicOpenException(java.lang.String errorMessage, DataSpec dataSpec, int errorCode, int httpEngineConnectionStatus)

Methods
from HttpDataSource.HttpDataSourceExceptioncreateForIOException
from DataSourceExceptionisCausedByPositionOutOfRange
from java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Fields

public final int httpEngineConnectionStatus

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

Constructors

public OpenException(java.io.IOException cause, DataSpec dataSpec, int errorCode, int httpEngineConnectionStatus)

public OpenException(java.lang.String errorMessage, DataSpec dataSpec, int errorCode, int httpEngineConnectionStatus)

public OpenException(DataSpec dataSpec, int errorCode, int httpEngineConnectionStatus)