{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

LoadState.Error

{% setvar page_path %}androidx/paging/LoadState.Error.html{% endsetvar %} {% setvar can_switch %}1{% endsetvar %} {% include "reference/_kotlin_switcher2.md" %}

class LoadState.Error : LoadState

Any
   ↳ LoadState
     ↳ LoadState.Error

Loading hit an error.

See also
retry

Summary

Public properties

Boolean

false if there is more data to load in the LoadType this LoadState is associated with, true otherwise.

Throwable

Throwable that caused the load operation to generate this error state.

Public constructors

Error(error: Throwable)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

endOfPaginationReached

val endOfPaginationReachedBoolean

false if there is more data to load in the LoadType this LoadState is associated with, true otherwise. This parameter informs Pager if it should continue to make requests for additional data in this direction or if it should halt as the end of the dataset has been reached.

error

val errorThrowable

Throwable that caused the load operation to generate this error state.

Public constructors

Error

Error(error: Throwable)
Parameters
error: Throwable

Throwable that caused the load operation to generate this error state.

Public functions

equals

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

hashCode

open fun hashCode(): Int

toString

open fun toString(): String