Type Parameters:
EVENT - The type of Events that can be returned by Handler.handle(Object, Object) and applied in the StateEvolver.applyEvent(Object, Object)
ERROR - The type of Error that can be returned by the Handler.handle(Object, Object) method
All Known Implementing Classes:
HandlerResult.Error, HandlerResult.Success

public sealed interface HandlerResult<ERROR,EVENT> permits HandlerResult.Success<ERROR,EVENT>, HandlerResult.Error<ERROR,EVENT>
Captures that result of calling a Handler.handle(Object, Object) for a specific COMMAND and aggregate STATE
Concrete instances can either be of type HandlerResult.Success or type HandlerResult.Error