Package io.micronaut.rabbitmq.exception
Class RabbitListenerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.micronaut.messaging.exceptions.MessagingException
io.micronaut.messaging.exceptions.MessageListenerException
io.micronaut.rabbitmq.exception.RabbitListenerException
- All Implemented Interfaces:
Serializable
public class RabbitListenerException
extends io.micronaut.messaging.exceptions.MessageListenerException
Exception thrown when an error occurs processing a RabbitMQ message via a
RabbitListener.- Since:
- 1.1.0
- Author:
- James Kleeh
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRabbitListenerException(String message, Object listener, @Nullable RabbitConsumerState messageState) Creates a new exception.RabbitListenerException(String message, Throwable cause, Object listener, @Nullable RabbitConsumerState messageState) Creates a new exception.RabbitListenerException(Throwable cause, Object listener, @Nullable RabbitConsumerState messageState) Creates a new exception. -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RabbitListenerException
public RabbitListenerException(String message, Object listener, @Nullable @Nullable RabbitConsumerState messageState) Creates a new exception.- Parameters:
message- The messagelistener- The listenermessageState- The message
-
RabbitListenerException
public RabbitListenerException(String message, Throwable cause, Object listener, @Nullable @Nullable RabbitConsumerState messageState) Creates a new exception.- Parameters:
message- The messagecause- The causelistener- The listenermessageState- The message
-
RabbitListenerException
public RabbitListenerException(Throwable cause, Object listener, @Nullable @Nullable RabbitConsumerState messageState) Creates a new exception.- Parameters:
cause- The causelistener- The listenermessageState- The message
-
-
Method Details
-
getListener
- Returns:
- The bean that is the kafka listener
-
getMessageState
- Returns:
- The consumer that produced the error
-