Interface SendAndDontWaitErrorHandler
-
- All Known Implementing Classes:
SendAndDontWaitErrorHandler.FallbackSendAndDontWaitErrorHandler,SendAndDontWaitErrorHandler.RethrowingSendAndDontWaitErrorHandler
public interface SendAndDontWaitErrorHandlerException handler that will handle errors that occur duringCommandBus.sendAndDontWait(Object)/CommandBus.sendAndDontWait(Object, Duration)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSendAndDontWaitErrorHandler.FallbackSendAndDontWaitErrorHandlerFallbackSendAndDontWaitErrorHandlerthat only error logs any issues.
Note: If theSendAndDontWaitErrorHandler.FallbackSendAndDontWaitErrorHandleris used with a Durable Command Bus (e.g.static classSendAndDontWaitErrorHandler.RethrowingSendAndDontWaitErrorHandlerFallbackSendAndDontWaitErrorHandlerthat error logs any issues and rethrows the exception.
TheSendAndDontWaitErrorHandler.RethrowingSendAndDontWaitErrorHandleris compatible with a Durable Command Bus (e.g.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandleError(Throwable exception, Object commandMessage, CommandHandler commandHandler)Handle an exception that occurred duringCommandBus.sendAndDontWait(Object)/CommandBus.sendAndDontWait(Object, Duration)
-
-
-
Method Detail
-
handleError
void handleError(Throwable exception, Object commandMessage, CommandHandler commandHandler)
Handle an exception that occurred duringCommandBus.sendAndDontWait(Object)/CommandBus.sendAndDontWait(Object, Duration)- Parameters:
exception- the exception that occurred duringCommandBus.sendAndDontWait(Object)/CommandBus.sendAndDontWait(Object, Duration)commandMessage- the command message that caused the exception (can be wrapped in an infrastructure wrapper, such as a Message/QueuedMessage, depending on which transport channel is used)commandHandler- the command handler that can handle the command
-
-