LoadErrorHandlingPolicy.LoadErrorInfo


public final class LoadErrorHandlingPolicy.LoadErrorInfo


Holds information about a load task error.

Summary

Public fields

final int

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

final IOException

The exception associated to the load error.

final LoadEventInfo

The LoadEventInfo associated with the load that encountered an error.

final MediaLoadData

MediaLoadData associated with the load that encountered an error.

Public constructors

LoadErrorInfo(
    LoadEventInfo loadEventInfo,
    MediaLoadData mediaLoadData,
    IOException exception,
    int errorCount
)

Creates an instance with the given values.

Public fields

errorCount

public final int errorCount

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

exception

public final IOException exception

The exception associated to the load error.

loadEventInfo

public final LoadEventInfo loadEventInfo

The LoadEventInfo associated with the load that encountered an error.

mediaLoadData

public final MediaLoadData mediaLoadData

MediaLoadData associated with the load that encountered an error.

Public constructors

LoadErrorInfo

public LoadErrorInfo(
    LoadEventInfo loadEventInfo,
    MediaLoadData mediaLoadData,
    IOException exception,
    int errorCount
)

Creates an instance with the given values.