# LoadState.Error

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

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/paging/LoadState.Error "View this page in Java")
Common/AllAndroid/JVMNative/C/iOSJavaScript
  - Cmn  

  ```
  class LoadState.Error : LoadState
```  

|---|---|-------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)                                      |||
| ↳ | [androidx.paging.LoadState](https://developer.android.com/reference/kotlin/androidx/paging/LoadState)                ||
|   | ↳ | [androidx.paging.LoadState.Error](https://developer.android.com/reference/kotlin/androidx/paging/LoadState.Error) |

*** ** * ** ***

Loading hit an error.  

|                                       See also                                        |
|---------------------------------------------------------------------------------------|--------|
| [PagedList](https://developer.android.com/reference/kotlin/androidx/paging/PagedList) | #retry |

## Summary

|                                                                                               ### Public constructors                                                                                               |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [Error](https://developer.android.com/reference/kotlin/androidx/paging/LoadState.Error#Error(kotlin.Throwable))`(error: `[Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html)`)` | Cmn |

|                                        ### Public functions                                         |
|-----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/paging/LoadState.Error#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` | Cmn |
| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                  | [hashCode](https://developer.android.com/reference/kotlin/androidx/paging/LoadState.Error#hashCode())`()`                                                                                            | Cmn |
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)            | [toString](https://developer.android.com/reference/kotlin/androidx/paging/LoadState.Error#toString())`()`                                                                                            | Cmn |

|                                  ### Public properties                                  |
|-----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html) | [error](https://developer.android.com/reference/kotlin/androidx/paging/LoadState.Error#error()) [Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html)that caused the load operation to generate this error state. | Cmn |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ### Inherited properties                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From[androidx.paging.LoadState](https://developer.android.com/reference/kotlin/androidx/paging/LoadState) |-------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----| | [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [endOfPaginationReached](https://developer.android.com/reference/kotlin/androidx/paging/LoadState#endOfPaginationReached()) `false`if there is more data to load in the[LoadType](https://developer.android.com/reference/kotlin/androidx/paging/LoadType)this[LoadState](https://developer.android.com/reference/kotlin/androidx/paging/LoadState)is associated with,`true`otherwise. | Cmn | |

## Public constructors

### Error

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

```
Error(error: Throwable)
```  

|                                            Parameters                                            |
|--------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|
| `error: `[Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html) | [Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html)that caused the load operation to generate this error state. |

## Public functions

### equals

Cmn  

```
open operator fun equals(other: Any?): Boolean
```  

### hashCode

Cmn  

```
open fun hashCode(): Int
```  

### toString

Cmn  

```
open fun toString(): String
```

## Public properties

### error

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

```
val error: Throwable
```

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