HttpDataSource.InvalidContentTypeException


public final class HttpDataSource.InvalidContentTypeException extends HttpDataSource.HttpDataSourceException


Thrown when the content type is invalid.

Summary

Public fields

final String

Public constructors

Inherited Constants

From androidx.media3.datasource.DataSourceException
static final int

This field is deprecated.

Use ERROR_CODE_IO_READ_POSITION_OUT_OF_RANGE.

From androidx.media3.datasource.HttpDataSource.HttpDataSourceException
static final int

The error occurred in closing a HttpDataSource.

static final int

The error occurred reading data from a HttpDataSource.

static final int

The error occurred in opening a HttpDataSource.

Inherited methods

From androidx.media3.datasource.DataSourceException
static boolean

Returns whether the given IOException was caused by a DataSourceException whose reason is ERROR_CODE_IO_READ_POSITION_OUT_OF_RANGE in its cause stack.

From androidx.media3.datasource.HttpDataSource.HttpDataSourceException
static HttpDataSource.HttpDataSourceException

Returns a HttpDataSourceException whose error code is assigned according to the cause and type.

From java.lang.Throwable
synchronized final void
synchronized Throwable
synchronized Throwable
String
String
StackTraceElement[]
synchronized final Throwable[]
synchronized Throwable
void
void
setStackTrace(StackTraceElement[] stackTrace)
String

Public fields

contentType

public final String contentType

Public constructors

InvalidContentTypeException

@UnstableApi
public InvalidContentTypeException(String contentType, DataSpec dataSpec)