public final class

HttpDataSource.CleartextNotPermittedException

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.CleartextNotPermittedException

Overview

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

Summary

Fields
from HttpDataSource.HttpDataSourceExceptiondataSpec, type, TYPE_CLOSE, TYPE_OPEN, TYPE_READ
from DataSourceExceptionPOSITION_OUT_OF_RANGE, reason
Constructors
publicCleartextNotPermittedException(java.io.IOException cause, 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

Constructors

public CleartextNotPermittedException(java.io.IOException cause, DataSpec dataSpec)