public class

ContentDataSource.ContentDataSourceException

extends DataSourceException

 java.lang.Object

↳java.lang.Throwable

↳java.lang.Exception

↳java.io.IOException

androidx.media3.datasource.DataSourceException

↳androidx.media3.datasource.ContentDataSource.ContentDataSourceException

Overview

Thrown when an java.io.IOException is encountered reading from a content URI.

Summary

Fields
from DataSourceExceptionPOSITION_OUT_OF_RANGE, reason
Constructors
publicContentDataSourceException(java.io.IOException cause)

publicContentDataSourceException(java.io.IOException cause, int errorCode)

Creates a new instance.

Methods
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 ContentDataSourceException(java.io.IOException cause)

Deprecated: Use ContentDataSource.ContentDataSourceException.

public ContentDataSourceException(java.io.IOException cause, int errorCode)

Creates a new instance.