# LoadErrorHandlingPolicy.LoadErrorInfo

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.LoadErrorInfo "View this page in Java")

<br />

```
class LoadErrorHandlingPolicy.LoadErrorInfo
```

<br />

*** ** * ** ***

Holds information about a load task error.

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                        ### Public constructors                                                                                                                                                                                                                                                                                                                                                                                         |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [LoadErrorInfo](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.LoadErrorInfo#LoadErrorInfo(androidx.media3.exoplayer.source.LoadEventInfo,androidx.media3.exoplayer.source.MediaLoadData,java.io.IOException,int))`(` ` loadEventInfo: `[LoadEventInfo](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/LoadEventInfo)`!,` ` mediaLoadData: `[MediaLoadData](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaLoadData)`!,` ` exception: `[IOException](https://developer.android.com/reference/java/io/IOException.html)`!,` ` errorCount: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) `)` Creates an instance with the given values. |

|                                               ### Public properties                                               |
|-------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                       | [errorCount](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.LoadErrorInfo#errorCount()) The number of errors this load task has encountered, including this one.                                                                                                   |
| [IOException](https://developer.android.com/reference/java/io/IOException.html)`!`                                | [exception](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.LoadErrorInfo#exception()) The exception associated to the load error.                                                                                                                                  |
| [LoadEventInfo](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/LoadEventInfo)`!` | [loadEventInfo](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.LoadErrorInfo#loadEventInfo()) The[LoadEventInfo](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/LoadEventInfo)associated with the load that encountered an error. |
| [MediaLoadData](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaLoadData)`!` | [mediaLoadData](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.LoadErrorInfo#mediaLoadData()) [MediaLoadData](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaLoadData)associated with the load that encountered an error.    |

## Public constructors

### LoadErrorInfo

```
LoadErrorInfo(
    loadEventInfo: LoadEventInfo!,
    mediaLoadData: MediaLoadData!,
    exception: IOException!,
    errorCount: Int
)
```

Creates an instance with the given values.  

## Public properties

### errorCount

```
val errorCount: Int
```

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

### exception

```
val exception: IOException!
```

The exception associated to the load error.  

### loadEventInfo

```
val loadEventInfo: LoadEventInfo!
```

The[LoadEventInfo](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/LoadEventInfo)associated with the load that encountered an error.  

### mediaLoadData

```
val mediaLoadData: MediaLoadData!
```

[MediaLoadData](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaLoadData)associated with the load that encountered an error.