LoadState.Error

public final class LoadState.Error extends LoadState

Object
   ↳ LoadState
     ↳ LoadState.Error

Loading hit an error.

See also
retry

Summary

Public fields

final boolean

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

final @NonNull Throwable

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

Public constructors

Public methods

boolean
int
@NonNull String

Public fields

endOfPaginationReached

@NonNull
public final boolean endOfPaginationReached

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

@NonNull
public final @NonNull Throwable error

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

Public constructors

Error

@NonNull
public final Error(@NonNull Throwable error)
Parameters
@NonNull Throwable error

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

Public methods

equals

@NonNull
public boolean equals(@Nullable Object other)

hashCode

@NonNull
public int hashCode()

toString

@NonNull
public String toString()