Interface MessageHandlingExceptionHandler<M extends Message>

Type Parameters:
M - the type of message being handled
All Known Subinterfaces:
CommandHandlingExceptionHandler, EventHandlingExceptionHandler, QueryHandlingExceptionHandler
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface MessageHandlingExceptionHandler<M extends Message>
Handles exceptions thrown by a message handler.

Return MessageStream.empty() to suppress the exception. Return MessageStream.failed(Throwable) (with the same or a different exception) to let the error propagate to the message processor.

Since:
5.2.0
Author:
Allard Buijze