HttpDataSource.CleartextNotPermittedException


public final class HttpDataSource.CleartextNotPermittedException extends HttpDataSource.HttpDataSourceException


Thrown when cleartext HTTP traffic is not permitted. For more information including how to enable cleartext traffic, see the corresponding troubleshooting topic.

Summary

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 constructors

CleartextNotPermittedException

@UnstableApi
public CleartextNotPermittedException(IOException cause, DataSpec dataSpec)