AssetDataSource.AssetDataSourceException


class AssetDataSource.AssetDataSourceException : DataSourceException


Thrown when an IOException is encountered reading a local asset.

Summary

Public constructors

This function is deprecated.

Use AssetDataSourceException.

AssetDataSourceException(
    cause: Throwable?,
    @PlaybackException.ErrorCode errorCode: Int
)

Creates a new instance.

Inherited properties

From androidx.media3.datasource.DataSourceException
Int

The reason of this DataSourceException, should be one of the ERROR_CODE_IO_* in PlaybackException.ErrorCode.

Public constructors

AssetDataSourceException

AssetDataSourceException(cause: IOException!)

AssetDataSourceException

AssetDataSourceException(
    cause: Throwable?,
    @PlaybackException.ErrorCode errorCode: Int
)

Creates a new instance.

Parameters
cause: Throwable?

The error cause.

@PlaybackException.ErrorCode errorCode: Int

See PlaybackException.ErrorCode.