Class RabbitClientException

  • All Implemented Interfaces:
    java.io.Serializable

    public class RabbitClientException
    extends io.micronaut.messaging.exceptions.MessagingClientException
    Exception thrown when an error occurs publishing a RabbitMQ message.
    Since:
    1.1.0
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.util.List<RabbitPublishState>> getFailures()  
      • 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

      • RabbitClientException

        public RabbitClientException​(java.lang.String message)
        Creates a new exception.
        Parameters:
        message - The message
      • RabbitClientException

        public RabbitClientException​(java.lang.String message,
                                     java.util.List<RabbitPublishState> failures)
        Creates a new exception.
        Parameters:
        message - The message
        failures - The messages that failed to send
      • RabbitClientException

        public RabbitClientException​(java.lang.String message,
                                     java.lang.Throwable cause)
        Creates a new exception.
        Parameters:
        message - The message
        cause - The cause
      • RabbitClientException

        public RabbitClientException​(java.lang.String message,
                                     java.lang.Throwable cause,
                                     java.util.List<RabbitPublishState> failures)
        Creates a new exception.
        Parameters:
        message - The message
        cause - The cause
        failures - The messages that failed to send
    • Method Detail

      • getFailures

        public java.util.Optional<java.util.List<RabbitPublishState>> getFailures()
        Returns:
        An optional list of messages that failed to send