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 Summary
ConstructorsConstructorDescriptionRabbitClientException(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 Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RabbitClientException
Creates a new exception.- Parameters:
message- The message
-
RabbitClientException
Creates a new exception.- Parameters:
message- The messagefailures- The messages that failed to send
-
RabbitClientException
Creates a new exception.- Parameters:
message- The messagecause- The cause
-
RabbitClientException
Creates a new exception.- Parameters:
message- The messagecause- The causefailures- The messages that failed to send
-
-
Method Details
-
getFailures
- Returns:
- An optional list of messages that failed to send
-