public final class

HttpDataSource.InvalidContentTypeException

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.HttpDataSource.InvalidContentTypeException

Overview

Thrown when the content type is invalid.

Summary

Fields
public final java.lang.StringcontentType

from HttpDataSource.HttpDataSourceExceptiondataSpec, type, TYPE_CLOSE, TYPE_OPEN, TYPE_READ
from DataSourceExceptionPOSITION_OUT_OF_RANGE, reason
Constructors
publicInvalidContentTypeException(java.lang.String contentType, DataSpec dataSpec)

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 java.lang.String contentType

Constructors

public InvalidContentTypeException(java.lang.String contentType, DataSpec dataSpec)