public class

FileDataSource.FileDataSourceException

extends DataSourceException

 java.lang.Object

↳java.lang.Throwable

↳java.lang.Exception

↳java.io.IOException

androidx.media3.datasource.DataSourceException

↳androidx.media3.datasource.FileDataSource.FileDataSourceException

Overview

Thrown when a FileDataSource encounters an error reading a file.

Summary

Fields
from DataSourceExceptionPOSITION_OUT_OF_RANGE, reason
Constructors
publicFileDataSourceException(java.lang.Exception cause)

publicFileDataSourceException(java.lang.String message, java.io.IOException cause)

publicFileDataSourceException(java.lang.String message, java.lang.Throwable cause, int errorCode)

Creates a FileDataSourceException.

publicFileDataSourceException(java.lang.Throwable cause, int errorCode)

Creates a FileDataSourceException.

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 FileDataSourceException(java.lang.Exception cause)

Deprecated: Use FileDataSource.FileDataSourceException

public FileDataSourceException(java.lang.String message, java.io.IOException cause)

Deprecated: Use FileDataSource.FileDataSourceException

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

Creates a FileDataSourceException.

public FileDataSourceException(java.lang.String message, java.lang.Throwable cause, int errorCode)

Creates a FileDataSourceException.