Back to Exoplayer

LoadErrorHandlingPolicy.LoadErrorInfo (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/upstream/LoadErrorHandlingPolicy.LoadErrorInfo.html

latest3.3 KB
Original Source

Package com.google.android.exoplayer2.upstream

Class LoadErrorHandlingPolicy.LoadErrorInfo


public static final classLoadErrorHandlingPolicy.LoadErrorInfoextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")

Holds information about a load task error.

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | int | errorCount | The number of errors this load task has encountered, including this one. | | IOException | exception | The exception associated to the load error. | | LoadEventInfo | loadEventInfo | The LoadEventInfo associated with the load that encountered an error. | | MediaLoadData | mediaLoadData | MediaLoadData associated with the load that encountered an error. |

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | LoadErrorInfo​(LoadEventInfo loadEventInfo, MediaLoadData mediaLoadData, IOException exception, int errorCount) | Creates an instance with the given values. |

Method Summary

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

- 

loadEventInfo

public final[LoadEventInfo](../source/LoadEventInfo.html "class in com.google.android.exoplayer2.source")loadEventInfo

The LoadEventInfo associated with the load that encountered an error.

- 

mediaLoadData

public final[MediaLoadData](../source/MediaLoadData.html "class in com.google.android.exoplayer2.source")mediaLoadData

MediaLoadData associated with the load that encountered an error.

- 

exception

public final[IOException](https://developer.android.com/reference/java/io/IOException.html "class or interface in java.io")exception

The exception associated to the load error.

- 

errorCount

public final int errorCount

The number of errors this load task has encountered, including this one.

Constructor Detail

- 

LoadErrorInfo

public LoadErrorInfo​([LoadEventInfo](../source/LoadEventInfo.html "class in com.google.android.exoplayer2.source")loadEventInfo,[MediaLoadData](../source/MediaLoadData.html "class in com.google.android.exoplayer2.source")mediaLoadData,[IOException](https://developer.android.com/reference/java/io/IOException.html "class or interface in java.io")exception,
                     int errorCount)

Creates an instance with the given values.