I try to wrap exception that thrown in Mono into another exception. I try to use onErrorResume() and doOnError() methods, but it does not help. How can I do it?
return response
.handle((responseData, sink) -> handleStatus(data, logContext, sink))
.doOnError(v -> {
throw new CriticalException("str", "str", "str", "str", "str", "str");
});