Package io.micronaut.jms.listener
Class LoggingJMSListenerErrorHandler
java.lang.Object
io.micronaut.jms.listener.LoggingJMSListenerErrorHandler
- All Implemented Interfaces:
io.micronaut.core.order.Ordered,JMSListenerErrorHandler
Default logger for all
JMSListeners. Logs any exception that occurs while receiving, processing, or handling
the message- Since:
- 3.0.0
- Author:
- Elliott Pope
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.order.Ordered
getOrder
-
Constructor Details
-
LoggingJMSListenerErrorHandler
public LoggingJMSListenerErrorHandler()
-
-
Method Details
-
handle
Description copied from interface:JMSListenerErrorHandlerHandles the exception thrown during message processing.- Specified by:
handlein interfaceJMSListenerErrorHandler- Parameters:
session- - theSessiontheJMSListeneris bound to.message- - theMessagethat was processed.ex- - the exception that was thrown.
-