docs/doc/reference/com/google/android/exoplayer2/upstream/FileDataSource.FileDataSourceException.html
Package com.google.android.exoplayer2.upstream
All Implemented Interfaces:SerializableEnclosing class:FileDataSource
public static classFileDataSource.FileDataSourceExceptionextends[DataSourceException](DataSourceException.html "class in com.google.android.exoplayer2.upstream")
Thrown when a FileDataSource encounters an error reading a file.
See Also:Serialized Form
-
POSITION_OUT_OF_RANGE, reason
Constructors | Constructor | Description |
| --- | --- |
| FileDataSourceException(Exception cause) |
Deprecated.
Use FileDataSourceException(Throwable, int)
|
| FileDataSourceException(String message, IOException cause) |
Deprecated.
Use FileDataSourceException(String, Throwable, int)
|
| FileDataSourceException(String message, Throwable cause, @com.google.android.exoplayer2.PlaybackException.ErrorCode int errorCode) |
Creates a FileDataSourceException.
|
| FileDataSourceException(Throwable cause, @com.google.android.exoplayer2.PlaybackException.ErrorCode int errorCode) |
Creates a FileDataSourceException.
|
-
isCausedByPositionOutOfRange
-
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public FileDataSourceException([Exception](https://developer.android.com/reference/java/lang/Exception.html "class or interface in java.lang")cause)
Deprecated.
Use FileDataSourceException(Throwable, int)
-
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public FileDataSourceException([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")message,[IOException](https://developer.android.com/reference/java/io/IOException.html "class or interface in java.io")cause)
Deprecated.
Use FileDataSourceException(String, Throwable, int)
-
public FileDataSourceException([Throwable](https://developer.android.com/reference/java/lang/Throwable.html "class or interface in java.lang")cause,[@ErrorCode](../PlaybackException.ErrorCode.html "annotation in com.google.android.exoplayer2")@com.google.android.exoplayer2.PlaybackException.ErrorCode int errorCode)
Creates a FileDataSourceException.
-
public FileDataSourceException(@Nullable[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")message,
@Nullable[Throwable](https://developer.android.com/reference/java/lang/Throwable.html "class or interface in java.lang")cause,[@ErrorCode](../PlaybackException.ErrorCode.html "annotation in com.google.android.exoplayer2")@com.google.android.exoplayer2.PlaybackException.ErrorCode int errorCode)
Creates a FileDataSourceException.