From 2ecde2a282f567cbecd24131dfe5550cf5419d78 Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Thu, 9 Sep 2021 12:41:01 -0400 Subject: [PATCH] GH-1352: Add Getter to StreamSendException.confCode --- .../rabbit/stream/producer/StreamSendException.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spring-rabbit-stream/src/main/java/org/springframework/rabbit/stream/producer/StreamSendException.java b/spring-rabbit-stream/src/main/java/org/springframework/rabbit/stream/producer/StreamSendException.java index cd6e6bc7..de11d4ab 100644 --- a/spring-rabbit-stream/src/main/java/org/springframework/rabbit/stream/producer/StreamSendException.java +++ b/spring-rabbit-stream/src/main/java/org/springframework/rabbit/stream/producer/StreamSendException.java @@ -40,4 +40,12 @@ public class StreamSendException extends AmqpException { this.confirmationCode = code; } + /** + * Return the confirmation code, if available. + * @return the code. + */ + public int getConfirmationCode() { + return this.confirmationCode; + } + }