Interface JMSListenerErrorHandler

All Superinterfaces:
io.micronaut.core.order.Ordered
All Known Subinterfaces:
GlobalJMSListenerErrorHandler
All Known Implementing Classes:
LoggingJMSListenerErrorHandler, TransactionalJMSListenerErrorHandler
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface JMSListenerErrorHandler extends io.micronaut.core.order.Ordered
Handles any errors thrown when handling a message on a JMSListener.
Since:
3.0.0
Author:
Elliott Pope
  • Field Summary

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

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

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

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

    getOrder
  • Method Details

    • handle

      void handle(@NonNull @NonNull jakarta.jms.Session session, @NonNull @NonNull jakarta.jms.Message message, @NonNull @NonNull Throwable ex)
      Handles the exception thrown during message processing.
      Parameters:
      session - - the Session the JMSListener is bound to.
      message - - the Message that was processed.
      ex - - the exception that was thrown.