Interface AsyncObserverExceptionHandler

  • All Known Implementing Classes:
    DefaultAsyncObserverExceptionHandler

    public interface AsyncObserverExceptionHandler
    Handles an exception thrown by an asynchronous observer. By default, an error message is logged.

    Note that the exception aborts processing of the observer but not of the async event.

    A bean that implements this interface should be Singleton or ApplicationScoped.

    See Also:
    ObservesAsync
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void handle​(Throwable throwable, jakarta.enterprise.inject.spi.ObserverMethod<?> observerMethod, jakarta.enterprise.inject.spi.EventContext<?> eventContext)  
    • Method Detail

      • handle

        void handle​(Throwable throwable,
                    jakarta.enterprise.inject.spi.ObserverMethod<?> observerMethod,
                    jakarta.enterprise.inject.spi.EventContext<?> eventContext)
        Parameters:
        throwable -
        observerMethod -
        eventContext -