# LoadErrorHandlingPolicy.LoadErrorInfo

Artifact: [androidx.media3:media3-exoplayer](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.java+class:androidx.media3.exoplayer.upstream.LoadErrorHandlingPolicy.LoadErrorInfo)

*** ** * ** ***


```
public final class LoadErrorHandlingPolicy.LoadErrorInfo
```

<br />

*** ** * ** ***

Holds information about a load task error.

## Summary

| ### Public fields |
|---|---|
| `final int` | `https://developer.android.com/reference/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.LoadErrorInfo#errorCount()` The number of errors this load task has encountered, including this one. |
| `final https://developer.android.com/reference/java/io/IOException.html` | `https://developer.android.com/reference/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.LoadErrorInfo#exception()` The exception associated to the load error. |
| `final https://developer.android.com/reference/androidx/media3/exoplayer/source/LoadEventInfo` | `https://developer.android.com/reference/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.LoadErrorInfo#loadEventInfo()` The `https://developer.android.com/reference/androidx/media3/exoplayer/source/LoadEventInfo` associated with the load that encountered an error. |
| `final https://developer.android.com/reference/androidx/media3/exoplayer/source/MediaLoadData` | `https://developer.android.com/reference/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.LoadErrorInfo#mediaLoadData()` `https://developer.android.com/reference/androidx/media3/exoplayer/source/MediaLoadData` associated with the load that encountered an error. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.LoadErrorInfo#LoadErrorInfo(androidx.media3.exoplayer.source.LoadEventInfo,androidx.media3.exoplayer.source.MediaLoadData,java.io.IOException,int)( https://developer.android.com/reference/androidx/media3/exoplayer/source/LoadEventInfo loadEventInfo, https://developer.android.com/reference/androidx/media3/exoplayer/source/MediaLoadData mediaLoadData, https://developer.android.com/reference/java/io/IOException.html 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 `https://developer.android.com/reference/androidx/media3/exoplayer/source/LoadEventInfo` associated with the load that encountered an error.

### mediaLoadData

```
public final MediaLoadData mediaLoadData
```

`https://developer.android.com/reference/androidx/media3/exoplayer/source/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.