reactor-core / reactor.core.publisher / onErrorMap

onErrorMap

fun <T, E : Throwable> Flux<T>.onErrorMap(exceptionType: KClass<E>, mapper: (E) -> Throwable): Flux<T>

Extension for Flux.onErrorMap providing a KClass based variant.

Author
Sebastien Deleuze

Since
3.1

fun <T, E : Throwable> Mono<T>.onErrorMap(exceptionType: KClass<E>, mapper: (E) -> Throwable): Mono<T>

Extension for Mono.onErrorMap providing a KClass based variant.

Author
Sebastien Deleuze

Since
3.1