Back to Exoplayer

CronetDataSource.OpenException (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/ext/cronet/CronetDataSource.OpenException.html

latest8.1 KB
Original Source

Package com.google.android.exoplayer2.ext.cronet

Class CronetDataSource.OpenException


public static final classCronetDataSource.OpenExceptionextends[HttpDataSource.HttpDataSourceException](../../upstream/HttpDataSource.HttpDataSourceException.html "class in com.google.android.exoplayer2.upstream")

Thrown when an error is encountered when trying to open a CronetDataSource. See Also:Serialized Form

Nested Class Summary

- 

Nested classes/interfaces inherited from class com.google.android.exoplayer2.upstream.HttpDataSource.HttpDataSourceException

HttpDataSource.HttpDataSourceException.Type

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | int | cronetConnectionStatus | Returns the status of the connection establishment at the moment when the error occurred, as defined by UrlRequest.Status. |

- 

Fields inherited from class com.google.android.exoplayer2.upstream.HttpDataSource.HttpDataSourceException

dataSpec, type, TYPE_CLOSE, TYPE_OPEN, TYPE_READ

- 

Fields inherited from class com.google.android.exoplayer2.upstream.DataSourceException

POSITION_OUT_OF_RANGE, reason

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | OpenException​(DataSpec dataSpec, @com.google.android.exoplayer2.PlaybackException.ErrorCode int errorCode, int cronetConnectionStatus) | | | OpenException​(IOException cause, DataSpec dataSpec, @com.google.android.exoplayer2.PlaybackException.ErrorCode int errorCode, int cronetConnectionStatus) | | | OpenException​(IOException cause, DataSpec dataSpec, int cronetConnectionStatus) | Deprecated. Use OpenException(IOException, DataSpec, int, int).

| | OpenException​(String errorMessage, DataSpec dataSpec, @com.google.android.exoplayer2.PlaybackException.ErrorCode int errorCode, int cronetConnectionStatus) | | | OpenException​(String errorMessage, DataSpec dataSpec, int cronetConnectionStatus) | Deprecated. Use OpenException(String, DataSpec, int, int).

|

Method Summary

- 

Methods inherited from class com.google.android.exoplayer2.upstream.HttpDataSource.HttpDataSourceException

createForIOException

- 

Methods inherited from class com.google.android.exoplayer2.upstream.DataSourceException

isCausedByPositionOutOfRange

- 

Methods inherited from class java.lang.Throwable

addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

- 

cronetConnectionStatus

public final int cronetConnectionStatus

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

Constructor Detail

- 

OpenException

[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public OpenException​([IOException](https://developer.android.com/reference/java/io/IOException.html "class or interface in java.io")cause,[DataSpec](../../upstream/DataSpec.html "class in com.google.android.exoplayer2.upstream")dataSpec,
                     int cronetConnectionStatus)

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

- 

OpenException

public OpenException​([IOException](https://developer.android.com/reference/java/io/IOException.html "class or interface in java.io")cause,[DataSpec](../../upstream/DataSpec.html "class in com.google.android.exoplayer2.upstream")dataSpec,[@ErrorCode](../../PlaybackException.ErrorCode.html "annotation in com.google.android.exoplayer2")@com.google.android.exoplayer2.PlaybackException.ErrorCode int errorCode,
                     int cronetConnectionStatus)
- 

OpenException

[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public OpenException​([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")errorMessage,[DataSpec](../../upstream/DataSpec.html "class in com.google.android.exoplayer2.upstream")dataSpec,
                     int cronetConnectionStatus)

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

- 

OpenException

public OpenException​([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")errorMessage,[DataSpec](../../upstream/DataSpec.html "class in com.google.android.exoplayer2.upstream")dataSpec,[@ErrorCode](../../PlaybackException.ErrorCode.html "annotation in com.google.android.exoplayer2")@com.google.android.exoplayer2.PlaybackException.ErrorCode int errorCode,
                     int cronetConnectionStatus)
- 

OpenException

public OpenException​([DataSpec](../../upstream/DataSpec.html "class in com.google.android.exoplayer2.upstream")dataSpec,[@ErrorCode](../../PlaybackException.ErrorCode.html "annotation in com.google.android.exoplayer2")@com.google.android.exoplayer2.PlaybackException.ErrorCode int errorCode,
                     int cronetConnectionStatus)