Package io.micronaut.nats.exception
Class DefaultNatsListenerExceptionHandler
java.lang.Object
io.micronaut.nats.exception.DefaultNatsListenerExceptionHandler
- All Implemented Interfaces:
io.micronaut.core.exceptions.ExceptionHandler<NatsListenerException>
,NatsListenerExceptionHandler
@Singleton
@Primary
public class DefaultNatsListenerExceptionHandler
extends Object
implements NatsListenerExceptionHandler
The default ExceptionHandler used when a
NatsListener
fails to process Nats message.
By defaul just logs the error- Since:
- 1.0.0
- Author:
- jgrimm
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DefaultNatsListenerExceptionHandler
public DefaultNatsListenerExceptionHandler()
-
-
Method Details
-
handle
- Specified by:
handle
in interfaceio.micronaut.core.exceptions.ExceptionHandler<NatsListenerException>
-