From 8c9cb784c1384019bd42bd006d128b4f589c3b63 Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Mon, 22 Feb 2021 14:29:34 -0500 Subject: [PATCH] Doc Polishing - throw exceptions when publisher confirms fail Resolves #316 --- docs/src/main/asciidoc/overview.adoc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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); } - }); }; }