diff --git a/docs/src/main/asciidoc/overview.adoc b/docs/src/main/asciidoc/overview.adoc index 1ff4d4d2e..9e5296ccd 100644 --- a/docs/src/main/asciidoc/overview.adoc +++ b/docs/src/main/asciidoc/overview.adoc @@ -956,18 +956,17 @@ public class Application { if (correlation.getReturnedMessage() != null) { log.error("Message for " + correlation.getPayload() + " was returned "); - // try to re-publish, send a DLQ, etc + // throw some exception to invoke binder retry/error handling } } catch (InterruptedException e) { Thread.currentThread().interrupt(); - e.printStackTrace(); + throw new IllegalStateException(e); } catch (ExecutionException | TimeoutException e) { - e.printStackTrace(); + throw new IllegalStateException(e); } - }); }; }