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
or
ApplicationScoped
.
- See Also:
-
ObservesAsync
-
Method Summary
-
Method Details
-
handle
void handle(Throwable throwable, jakarta.enterprise.inject.spi.ObserverMethod<?> observerMethod, jakarta.enterprise.inject.spi.EventContext<?> eventContext) - Parameters:
throwable
-observerMethod
-eventContext
-
-