map Error
fun <ELEMENT> CordaFuture<out ELEMENT>.mapError(transform: (Throwable) -> Throwable): CordaFuture<ELEMENT>
Returns a future that will map an error thrown using the provided transform function.
Returns a future that will map an error thrown using the provided transform function.