FileDataSource.FileDataSourceException


public class FileDataSource.FileDataSourceException extends DataSourceException


Thrown when a FileDataSource encounters an error reading a file.

Summary

Public constructors

This method is deprecated.

Use FileDataSourceException

FileDataSourceException(
    Throwable cause,
    @PlaybackException.ErrorCode int errorCode
)

Creates a FileDataSourceException.

This method is deprecated.

Use FileDataSourceException

FileDataSourceException(
    @Nullable String message,
    @Nullable Throwable cause,
    @PlaybackException.ErrorCode int errorCode
)

Creates a FileDataSourceException.

Inherited Constants

From androidx.media3.datasource.DataSourceException
static final int

This field is deprecated.

Use ERROR_CODE_IO_READ_POSITION_OUT_OF_RANGE.

Inherited fields

From androidx.media3.datasource.DataSourceException
final int

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

Inherited methods

From androidx.media3.datasource.DataSourceException
static boolean

Returns whether the given IOException was caused by a DataSourceException whose reason is ERROR_CODE_IO_READ_POSITION_OUT_OF_RANGE in its cause stack.

From java.lang.Throwable
synchronized final void
synchronized Throwable
synchronized Throwable
String
String
StackTraceElement[]
synchronized final Throwable[]
synchronized Throwable
void
void
setStackTrace(StackTraceElement[] stackTrace)
String

Public constructors

FileDataSourceException

public FileDataSourceException(Exception cause)

FileDataSourceException

public FileDataSourceException(
    Throwable cause,
    @PlaybackException.ErrorCode int errorCode
)

Creates a FileDataSourceException.

FileDataSourceException

public FileDataSourceException(String message, IOException cause)

FileDataSourceException

public FileDataSourceException(
    @Nullable String message,
    @Nullable Throwable cause,
    @PlaybackException.ErrorCode int errorCode
)

Creates a FileDataSourceException.