Package io.quarkus.arc
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
orApplicationScoped
.- See Also:
ObservesAsync
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
handle(Throwable throwable, javax.enterprise.inject.spi.ObserverMethod<?> observerMethod, javax.enterprise.inject.spi.EventContext<?> eventContext)
-
-
-
Method Detail
-
handle
void handle(Throwable throwable, javax.enterprise.inject.spi.ObserverMethod<?> observerMethod, javax.enterprise.inject.spi.EventContext<?> eventContext)
- Parameters:
throwable
-observerMethod
-eventContext
-
-
-