public final class

CronetDataSource.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.cronet.CronetDataSource.OpenException

Overview

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

Summary

Fields
public final intcronetConnectionStatus

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 cronetConnectionStatus)

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

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

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

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

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 cronetConnectionStatus

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 cronetConnectionStatus)

Deprecated: Use CronetDataSource.OpenException.OpenException(IOException, DataSpec, int, int).

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

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

Deprecated: Use CronetDataSource.OpenException.OpenException(String, DataSpec, int, int).

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

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