map
inline fun <CacheIn : Any, CacheOut : Any, ErrorIn : Any, ErrorOut : Any> ErrorWithCache<CacheIn, ErrorIn>.map(onCache: (CacheIn?) -> CacheOut, onError: (ErrorIn) -> ErrorOut): ErrorWithCache<CacheOut, ErrorOut>
Transforms the encapsulated error and cache.
Return
A new ErrorWithCache instance of type ErrorOut and CacheOut.