Back to Exoplayer

ContentDataSource.ContentDataSourceException (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/upstream/ContentDataSource.ContentDataSourceException.html

latest3.9 KB
Original Source

Package com.google.android.exoplayer2.upstream

Class ContentDataSource.ContentDataSourceException


public static classContentDataSource.ContentDataSourceExceptionextends[DataSourceException](DataSourceException.html "class in com.google.android.exoplayer2.upstream")

Thrown when an IOException is encountered reading from a content URI. See Also:Serialized Form

Field Summary

- 

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

POSITION_OUT_OF_RANGE, reason

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | ContentDataSourceException​(IOException cause) | Deprecated. Use ContentDataSourceException(IOException, int).

| | ContentDataSourceException​(IOException cause, @com.google.android.exoplayer2.PlaybackException.ErrorCode int errorCode) | Creates a new instance. |

Method Summary

- 

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

Constructor Detail

- 

ContentDataSourceException

[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public ContentDataSourceException​([IOException](https://developer.android.com/reference/java/io/IOException.html "class or interface in java.io")cause)

Deprecated. Use ContentDataSourceException(IOException, int).

- 

ContentDataSourceException

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

Creates a new instance.