FailedResource

class FailedResource<T> : Resource<T>
kotlin.Any
   ↳ androidx.ui.res.Resource<T>
   ↳ androidx.ui.res.FailedResource

A class represents the alternative resource due to failed to load the requested resource.

Summary

Public constructors

<init>(resource: T?, throwable: Throwable?)

A class represents the alternative resource due to failed to load the requested resource.

Properties

Throwable?

the reason of the failure.

Inherited properties

Public constructors

<init>

FailedResource(
    resource: T?,
    throwable: Throwable?)

A class represents the alternative resource due to failed to load the requested resource.

Parameters
throwable: Throwable? the reason of the failure.

Properties

throwable

val throwable: Throwable?

the reason of the failure.