public interface QueryInvocationErrorHandler
Note that this handler is not used for point-to-point queries. In that case, exceptions are reported directly to the invoker. Query Bus implementation may choose to implement point-to-point queries as scatter-gather, and only reporting the first answer returned. In that case, this handler is invoked, and any propagated exceptions may or may not be reported to the sender of the query.
Modifier and Type | Method and Description |
---|---|
void |
onError(Throwable error,
QueryMessage<?,?> queryMessage,
MessageHandler messageHandler)
Invoked when an error occurred while invoking a message handler in a scatter-gather query.
|
void onError(Throwable error, QueryMessage<?,?> queryMessage, MessageHandler messageHandler)
Note that this handler is not used for point-to-point queries. In that case, exceptions are reported directly to the invoker. Query Bus implementation may choose to implement point-to-point queries as scatter-gather, and only reporting the first answer returned. In that case, this method is invoked, and any propagated exceptions may or may not be reported to the sender of the query.
error
- The error that occurredqueryMessage
- The message causing the exception in the handlermessageHandler
- The handler that reported the exceptionCopyright © 2010–2022. All rights reserved.