LoaderErrorThrower.Placeholder


class LoaderErrorThrower.Placeholder : LoaderErrorThrower


A LoaderErrorThrower that never throws.

Summary

Public constructors

Public functions

Unit

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.

Unit
maybeThrowError(minRetryCount: Int)

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 constructors

Placeholder

Placeholder()

Public functions

maybeThrowError

fun maybeThrowError(): Unit

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

fun maybeThrowError(minRetryCount: Int): Unit

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
minRetryCount: Int

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.