public class RabbitListenerException
extends io.micronaut.messaging.exceptions.MessageListenerException
RabbitListener
.Constructor and Description |
---|
RabbitListenerException(java.lang.String message,
java.lang.Object listener,
RabbitConsumerState messageState)
Creates a new exception.
|
RabbitListenerException(java.lang.String message,
java.lang.Throwable cause,
java.lang.Object listener,
RabbitConsumerState messageState)
Creates a new exception.
|
RabbitListenerException(java.lang.Throwable cause,
java.lang.Object listener,
RabbitConsumerState messageState)
Creates a new exception.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getListener() |
java.util.Optional<RabbitConsumerState> |
getMessageState() |
public RabbitListenerException(java.lang.String message, java.lang.Object listener, @Nullable RabbitConsumerState messageState)
message
- The messagelistener
- The listenermessageState
- The messagepublic RabbitListenerException(java.lang.String message, java.lang.Throwable cause, java.lang.Object listener, @Nullable RabbitConsumerState messageState)
message
- The messagecause
- The causelistener
- The listenermessageState
- The messagepublic RabbitListenerException(java.lang.Throwable cause, java.lang.Object listener, @Nullable RabbitConsumerState messageState)
cause
- The causelistener
- The listenermessageState
- The messagepublic java.lang.Object getListener()
public java.util.Optional<RabbitConsumerState> getMessageState()