title: Is there a better way to log failures in a chain of Java Vavr Try clauses?
body: <p>I'm trying to log at each failure stage and, as far as I can tell, I need to nest the try and log inside a flatmap.</p>
  
  <pre><code>Try.of(() -&gt; true).
      onFailure(h -&gt; System.out.println("first onFailure")).
      flatMap(i -&gt; Try.of(() -&gt; { throw new RuntimeException(); }).
                       onFailure(j -&gt; System.out.println("second onFailure"))).
      flatMap(k -&gt; Try.of(() -&gt; true).
                       onFailure(l -&gt; System.out.println("third onFailure")));
  </code></pre>
  
  <p>Is there an easier way to do it than the above? Is there a function in the library that I can use to replace the nested <code>Try.of()</code>s?</p>