title: Spring Integration Java DSL: strategy to handle errors / exceptions?
body: <p>How do I approach an error handling in Java DSL flows?</p>
  
  <p>Suppose I have a simple flow that writes to Rabbit (or to a database). </p>
  
  <pre><code>@Bean
  public IntegrationFlow setupRabbitFlow() {
      return IntegrationFlows.from(publishSubscribeChannel)
              .handle((p, h) -&gt; rabbitPublishActivator.publishToRabbit(p))
              .get();
  }
  </code></pre>
  
  <p>Such an operation may result in an error due to database issues or intermediary connection failure.</p>
  
  <p>How could I enhance flow declaration towards actions taken if some exception happens within the "publishToRabbit" step? </p>