public class RabbitListenerException
extends io.micronaut.messaging.exceptions.MessageListenerException
RabbitListener
.Constructor and Description |
---|
RabbitListenerException(String message,
Object listener,
RabbitConsumerState messageState)
Creates a new exception.
|
RabbitListenerException(String message,
Throwable cause,
Object listener,
RabbitConsumerState messageState)
Creates a new exception.
|
RabbitListenerException(Throwable cause,
Object listener,
RabbitConsumerState messageState)
Creates a new exception.
|
Modifier and Type | Method and Description |
---|---|
Object |
getListener() |
Optional<RabbitConsumerState> |
getMessageState() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public RabbitListenerException(String message, Object listener, @Nullable RabbitConsumerState messageState)
message
- The messagelistener
- The listenermessageState
- The messagepublic RabbitListenerException(String message, Throwable cause, Object listener, @Nullable RabbitConsumerState messageState)
message
- The messagecause
- The causelistener
- The listenermessageState
- The messagepublic RabbitListenerException(Throwable cause, Object listener, @Nullable RabbitConsumerState messageState)
cause
- The causelistener
- The listenermessageState
- The messagepublic Object getListener()
public Optional<RabbitConsumerState> getMessageState()