Class LoggingJMSListenerErrorHandler

java.lang.Object
io.micronaut.jms.listener.LoggingJMSListenerErrorHandler
All Implemented Interfaces:
io.micronaut.core.order.Ordered, JMSListenerErrorHandler

public class LoggingJMSListenerErrorHandler extends Object implements 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(jakarta.jms.Session session, jakarta.jms.Message message, Throwable ex)
    Handles the exception thrown during message processing.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micronaut.core.order.Ordered

    getOrder
  • Constructor Details

    • LoggingJMSListenerErrorHandler

      public LoggingJMSListenerErrorHandler()
  • Method Details

    • handle

      public void handle(jakarta.jms.Session session, jakarta.jms.Message message, Throwable ex)
      Description copied from interface: JMSListenerErrorHandler
      Handles the exception thrown during message processing.
      Specified by:
      handle in interface JMSListenerErrorHandler
      Parameters:
      session - - the Session the JMSListener is bound to.
      message - - the Message that was processed.
      ex - - the exception that was thrown.