Class StreamSendException

  • All Implemented Interfaces:
    java.io.Serializable

    public class StreamSendException
    extends AmqpException
    Used to complete the future exceptionally when sending fails.
    Since:
    2.4
    Author:
    Gary Russell
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      StreamSendException​(java.lang.String message, int code)
      Construct an instance with the provided message.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getConfirmationCode()
      Return the confirmation code, if available.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • StreamSendException

        public StreamSendException​(java.lang.String message,
                                   int code)
        Construct an instance with the provided message.
        Parameters:
        message - the message.
        code - the confirmation code.
    • Method Detail

      • getConfirmationCode

        public int getConfirmationCode()
        Return the confirmation code, if available.
        Returns:
        the code.