«
Prev
»
Next
Spring / Spring Webflux Interview questions
How do you handle errors in a Mono/Flux pipeline?
- onErrorReturn(value): Provides a default fallback value.
- onErrorResume(e -> ...): Switches to a fallback publisher (another Mono or Flux).
- retry(n): Re-subscribes to the source if an error occurs.
More Related questions...
Comments & Discussions