@PubSubListener public class ErrorHandlingSubscriber extends java.lang.Object implements PubSubMessageReceiverExceptionHandler
Constructor and Description |
---|
ErrorHandlingSubscriber() |
Modifier and Type | Method and Description |
---|---|
void |
handle(PubSubMessageReceiverException exception) |
void |
onMessage(Animal animal) |
public void onMessage(Animal animal)
animal
- payloadpublic void handle(PubSubMessageReceiverException exception)
handle
in interface io.micronaut.core.exceptions.ExceptionHandler<PubSubMessageReceiverException>