public final class

AssetDataSource.AssetDataSourceException

extends DataSourceException

 java.lang.Object

↳java.lang.Throwable

↳java.lang.Exception

↳java.io.IOException

androidx.media3.datasource.DataSourceException

↳androidx.media3.datasource.AssetDataSource.AssetDataSourceException

Overview

Thrown when an java.io.IOException is encountered reading a local asset.

Summary

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

publicAssetDataSourceException(java.lang.Throwable 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 AssetDataSourceException(java.io.IOException cause)

Deprecated: Use AssetDataSource.AssetDataSourceException.AssetDataSourceException(Throwable, int).

public AssetDataSourceException(java.lang.Throwable cause, int errorCode)

Creates a new instance.

Parameters:

cause: The error cause.
errorCode: See .