Package io.micronaut.rabbitmq.exception
Class RabbitClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.micronaut.messaging.exceptions.MessagingException
io.micronaut.messaging.exceptions.MessagingClientException
io.micronaut.rabbitmq.exception.RabbitClientException
- All Implemented Interfaces:
- Serializable
public class RabbitClientException
extends io.micronaut.messaging.exceptions.MessagingClientException
Exception thrown when an error occurs publishing a RabbitMQ message.
- Since:
- 1.1.0
- Author:
- James Kleeh
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionRabbitClientException(String message) Creates a new exception.RabbitClientException(String message, Throwable cause) Creates a new exception.RabbitClientException(String message, Throwable cause, List<RabbitPublishState> failures) Creates a new exception.RabbitClientException(String message, List<RabbitPublishState> failures) Creates a new exception.
- 
Method SummaryMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
RabbitClientExceptionCreates a new exception.- Parameters:
- message- The message
 
- 
RabbitClientExceptionCreates a new exception.- Parameters:
- message- The message
- failures- The messages that failed to send
 
- 
RabbitClientExceptionCreates a new exception.- Parameters:
- message- The message
- cause- The cause
 
- 
RabbitClientExceptionCreates a new exception.- Parameters:
- message- The message
- cause- The cause
- failures- The messages that failed to send
 
 
- 
- 
Method Details- 
getFailures- Returns:
- An optional list of messages that failed to send
 
 
-