corda / net.corda.core / mapErrors

mapErrors

fun <SNAPSHOT, ELEMENT> DataFeed<SNAPSHOT, ELEMENT>.mapErrors(transform: (Throwable) -> Throwable): DataFeed<SNAPSHOT, ELEMENT>

Returns a DataFeed that transforms errors according to the provided transform function.

fun <ELEMENT> <ERROR CLASS><ELEMENT>.mapErrors(transform: (Throwable) -> Throwable): <ERROR CLASS><ELEMENT>

Returns an Observable that transforms errors according to the provided transform function.