FileDataSource.FileDataSourceException


class FileDataSource.FileDataSourceException : DataSourceException


Thrown when a FileDataSource encounters an error reading a file.

Summary

Public constructors

This function is deprecated.

Use FileDataSourceException

FileDataSourceException(
    cause: Throwable!,
    @PlaybackException.ErrorCode errorCode: Int
)

Creates a FileDataSourceException.

This function is deprecated.

Use FileDataSourceException

FileDataSourceException(
    message: String?,
    cause: Throwable?,
    @PlaybackException.ErrorCode errorCode: Int
)

Creates a FileDataSourceException.

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

FileDataSourceException

FileDataSourceException(cause: Exception!)

FileDataSourceException

FileDataSourceException(
    cause: Throwable!,
    @PlaybackException.ErrorCode errorCode: Int
)

Creates a FileDataSourceException.

FileDataSourceException

FileDataSourceException(message: String!, cause: IOException!)

FileDataSourceException

FileDataSourceException(
    message: String?,
    cause: Throwable?,
    @PlaybackException.ErrorCode errorCode: Int
)

Creates a FileDataSourceException.