# LoadState.Error

Artifact: [androidx.paging:paging-common](https://developer.android.com/jetpack/androidx/releases/paging) [View Source](https://cs.android.com/search?q=file:androidx/paging/LoadState.kt+class:androidx.paging.LoadState.Error) Added in [3.0.0](https://developer.android.com/jetpack/androidx/releases/paging#3.0.0)

*** ** * ** ***


```
public final class LoadState.Error extends LoadState
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.paging.LoadState](https://developer.android.com/reference/androidx/paging/LoadState) ||
|   | ↳ | [androidx.paging.LoadState.Error](https://developer.android.com/reference/androidx/paging/LoadState.Error) |

*** ** * ** ***

Loading hit an error.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/paging/PagedList` | #retry |

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/paging/LoadState.Error#Error(kotlin.Throwable)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Throwable.html error)` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/paging/LoadState.Error#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Throwable.html` | `https://developer.android.com/reference/androidx/paging/LoadState.Error#getError()()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html` that caused the load operation to generate this error state. |
| `int` | `https://developer.android.com/reference/androidx/paging/LoadState.Error#hashCode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/paging/LoadState.Error#toString()()` |

| ### Inherited methods |
|---|
| From [androidx.paging.LoadState](https://developer.android.com/reference/androidx/paging/LoadState) |---|---| | `final boolean` | `https://developer.android.com/reference/androidx/paging/LoadState#getEndOfPaginationReached()()` `false` if there is more data to load in the `https://developer.android.com/reference/androidx/paging/LoadType` this `https://developer.android.com/reference/androidx/paging/LoadState` is associated with, `true` otherwise. | |

## Public constructors

### Error

Added in [3.0.0](https://developer.android.com/jetpack/androidx/releases/paging#3.0.0)

```
public Error(@NonNull Throwable error)
```

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Throwable.html error` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html` that caused the load operation to generate this error state. |

## Public methods

### equals

```
public boolean equals(Object other)
```

### getError

Added in [3.0.0](https://developer.android.com/jetpack/androidx/releases/paging#3.0.0)

```
public final @NonNull Throwable getError()
```

`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html` that caused the load operation to generate this error state.

### hashCode

```
public int hashCode()
```

### toString

```
public @NonNull String toString()
```