docs/doc/reference/com/google/android/exoplayer2/upstream/AssetDataSource.AssetDataSourceException.html
Package com.google.android.exoplayer2.upstream
All Implemented Interfaces:SerializableEnclosing class:AssetDataSource
public static final classAssetDataSource.AssetDataSourceExceptionextends[DataSourceException](DataSourceException.html "class in com.google.android.exoplayer2.upstream")
Thrown when an IOException is encountered reading a local asset.
See Also:Serialized Form
-
POSITION_OUT_OF_RANGE, reason
Constructors | Constructor | Description |
| --- | --- |
| AssetDataSourceException(IOException cause) |
Deprecated.
Use AssetDataSourceException(Throwable, int).
|
| AssetDataSourceException(Throwable cause, @com.google.android.exoplayer2.PlaybackException.ErrorCode int errorCode) |
Creates a new instance.
|
-
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 AssetDataSourceException([IOException](https://developer.android.com/reference/java/io/IOException.html "class or interface in java.io")cause)
Deprecated.
Use AssetDataSourceException(Throwable, int).
-
public AssetDataSourceException(@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 new instance.
Parameters:cause - The error cause.errorCode - See PlaybackException.ErrorCode.