DeviceStorageError

This class will be used in setWithResult and other extensions for DeviceStorage to represent special error happen in operations of DeviceStorage

Constructors

Link copied to clipboard
constructor(message: String)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?

Functions

Link copied to clipboard
fun <T : Throwable> Throwable.causedBy(kclass: KClass<T>, additionalFilterOnHappened: (T) -> T? = { it }): T?
Link copied to clipboard
fun Throwable.causedCancellationException(): CancellationException?

Traverses this throwable's cause chain to find a CancellationException.

Link copied to clipboard
fun Throwable.causedUnresolvedAddressException(): UnresolvedAddressException?
Link copied to clipboard

Checks whether this throwable (or any of its causes) is a CancellationException.

Link copied to clipboard
open override fun toString(): String