Class StreamSendException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.amqp.AmqpException
org.springframework.rabbit.stream.producer.StreamSendException
- All Implemented Interfaces:
- Serializable
Used to complete the future exceptionally when sending fails.
- Since:
- 2.4
- Author:
- Gary Russell
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionStreamSendException(String message, int code) Construct an instance with the provided message.
- 
Method SummaryModifier and TypeMethodDescriptionintReturn the confirmation code, if available.Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
StreamSendExceptionConstruct an instance with the provided message.- Parameters:
- message- the message.
- code- the confirmation code.
 
 
- 
- 
Method Details- 
getConfirmationCodepublic int getConfirmationCode()Return the confirmation code, if available.- Returns:
- the code.
 
 
-