wrapStorageRequest

internal inline fun <T : Any> wrapStorageRequest(storageRequest: () -> T?): Either<StorageFailure, T>
internal fun <T : Any> <Error class: unknown class><T?>.wrapStorageRequest(): <Error class: unknown class><Either<StorageFailure, T>>


internal inline fun <T : Any> wrapStorageRequest(noinline errorHandler: (<Error class: unknown class>) -> Either<StorageFailure, T>, storageRequest: () -> T?): Either<StorageFailure, T>

Wrap a storage request with a custom error handler that let's delegate the error handling to the caller.