Interface ErrorHandlingSupport
- All Known Subinterfaces:
GenericMessagePublicationSupport<T,P>, IMessageBus<T, P>, ISyncMessageBus<T, P>
- All Known Implementing Classes:
AbstractSyncAsyncMessageBus, MBassador, SyncMessageBus
public interface ErrorHandlingSupport
Publication errors may occur at various points of time during message delivery. A handler may throw an exception,
may not be accessible due to security constraints or is not annotated properly.
In any of all possible cases a publication error is created and passed to each of the registered error handlers.
Error handlers can be added via the
IBusConfiguration.-
Method Summary
-
Method Details
-
getRegisteredErrorHandlers
Collection<IPublicationErrorHandler> getRegisteredErrorHandlers()Get all registered instance ofIPublicationErrorHandler- Returns:
- an immutable collection containing all the registered error handlers
-