RawResourceDataSource.RawResourceDataSourceException


public class RawResourceDataSource.RawResourceDataSourceException extends DataSourceException


Thrown when an IOException is encountered reading from a raw resource.

Summary

Public constructors

This method is deprecated.

Use RawResourceDataSourceException.

This method is deprecated.

Use RawResourceDataSourceException.

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

Creates a new instance.

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

RawResourceDataSourceException

public RawResourceDataSourceException(Throwable cause)

RawResourceDataSourceException

public RawResourceDataSourceException(String message)

RawResourceDataSourceException

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

Creates a new instance.