Back to Exoplayer

HttpDataSource.InvalidContentTypeException (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/upstream/HttpDataSource.InvalidContentTypeException.html

latest4.3 KB
Original Source

Package com.google.android.exoplayer2.upstream

Class HttpDataSource.InvalidContentTypeException


public static final classHttpDataSource.InvalidContentTypeExceptionextends[HttpDataSource.HttpDataSourceException](HttpDataSource.HttpDataSourceException.html "class in com.google.android.exoplayer2.upstream")

Thrown when the content type is invalid. 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 | | --- | --- | --- | | String | contentType | |

- 

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 | | --- | --- | | InvalidContentTypeException​(String contentType, DataSpec dataSpec) | |

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

- 

contentType

public final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")contentType

Constructor Detail

- 

InvalidContentTypeException

public InvalidContentTypeException​([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")contentType,[DataSpec](DataSpec.html "class in com.google.android.exoplayer2.upstream")dataSpec)