LoaderErrorThrower


@UnstableApi
public interface LoaderErrorThrower

Known direct subclasses
LoaderErrorThrower.Placeholder

A LoaderErrorThrower that never throws.

Loader

Manages the background loading of Loadables.


Conditionally throws errors affecting a Loader.

Summary

Nested types

A LoaderErrorThrower that never throws.

Public methods

abstract void

Throws a fatal error, or a non-fatal error if loading is currently backed off and the current Loadable has incurred a number of errors greater than the Loaders default minimum number of retries.

abstract void
maybeThrowError(int minRetryCount)

Throws a fatal error, or a non-fatal error if loading is currently backed off and the current Loadable has incurred a number of errors greater than the specified minimum number of retries.

Public methods

maybeThrowError

abstract void maybeThrowError()

Throws a fatal error, or a non-fatal error if loading is currently backed off and the current Loadable has incurred a number of errors greater than the Loaders default minimum number of retries. Else does nothing.

Throws
java.io.IOException

The error.

maybeThrowError

abstract void maybeThrowError(int minRetryCount)

Throws a fatal error, or a non-fatal error if loading is currently backed off and the current Loadable has incurred a number of errors greater than the specified minimum number of retries. Else does nothing.

Parameters
int minRetryCount

A minimum retry count that must be exceeded for a non-fatal error to be thrown. Should be non-negative.

Throws
java.io.IOException

The error.