docs/doc/reference/com/google/android/exoplayer2/ext/cronet/CronetDataSource.OpenException.html
Package com.google.android.exoplayer2.ext.cronet
All Implemented Interfaces:SerializableEnclosing class:CronetDataSource
public static final classCronetDataSource.OpenExceptionextends[HttpDataSource.HttpDataSourceException](../../upstream/HttpDataSource.HttpDataSourceException.html "class in com.google.android.exoplayer2.upstream")
Thrown when an error is encountered when trying to open a CronetDataSource.
See Also:Serialized Form
-
HttpDataSource.HttpDataSourceException.Type
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| int | cronetConnectionStatus |
Returns the status of the connection establishment at the moment when the error occurred, as defined by UrlRequest.Status.
|
-
dataSpec, type, TYPE_CLOSE, TYPE_OPEN, TYPE_READ
-
POSITION_OUT_OF_RANGE, reason
Constructors | Constructor | Description |
| --- | --- |
| OpenException(DataSpec dataSpec, @com.google.android.exoplayer2.PlaybackException.ErrorCode int errorCode, int cronetConnectionStatus) | |
| OpenException(IOException cause, DataSpec dataSpec, @com.google.android.exoplayer2.PlaybackException.ErrorCode int errorCode, int cronetConnectionStatus) | |
| OpenException(IOException cause, DataSpec dataSpec, int cronetConnectionStatus) |
Deprecated.
Use OpenException(IOException, DataSpec, int, int).
|
| OpenException(String errorMessage, DataSpec dataSpec, @com.google.android.exoplayer2.PlaybackException.ErrorCode int errorCode, int cronetConnectionStatus) | |
| OpenException(String errorMessage, DataSpec dataSpec, int cronetConnectionStatus) |
Deprecated.
Use OpenException(String, DataSpec, int, int).
|
-
createForIOException
-
isCausedByPositionOutOfRange
-
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
public final int cronetConnectionStatus
Returns the status of the connection establishment at the moment when the error occurred, as defined by UrlRequest.Status.
-
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public OpenException([IOException](https://developer.android.com/reference/java/io/IOException.html "class or interface in java.io")cause,[DataSpec](../../upstream/DataSpec.html "class in com.google.android.exoplayer2.upstream")dataSpec,
int cronetConnectionStatus)
Deprecated.
Use OpenException(IOException, DataSpec, int, int).
-
public OpenException([IOException](https://developer.android.com/reference/java/io/IOException.html "class or interface in java.io")cause,[DataSpec](../../upstream/DataSpec.html "class in com.google.android.exoplayer2.upstream")dataSpec,[@ErrorCode](../../PlaybackException.ErrorCode.html "annotation in com.google.android.exoplayer2")@com.google.android.exoplayer2.PlaybackException.ErrorCode int errorCode,
int cronetConnectionStatus)
-
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public OpenException([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")errorMessage,[DataSpec](../../upstream/DataSpec.html "class in com.google.android.exoplayer2.upstream")dataSpec,
int cronetConnectionStatus)
Deprecated.
Use OpenException(String, DataSpec, int, int).
-
public OpenException([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")errorMessage,[DataSpec](../../upstream/DataSpec.html "class in com.google.android.exoplayer2.upstream")dataSpec,[@ErrorCode](../../PlaybackException.ErrorCode.html "annotation in com.google.android.exoplayer2")@com.google.android.exoplayer2.PlaybackException.ErrorCode int errorCode,
int cronetConnectionStatus)
-
public OpenException([DataSpec](../../upstream/DataSpec.html "class in com.google.android.exoplayer2.upstream")dataSpec,[@ErrorCode](../../PlaybackException.ErrorCode.html "annotation in com.google.android.exoplayer2")@com.google.android.exoplayer2.PlaybackException.ErrorCode int errorCode,
int cronetConnectionStatus)