S - The concrete type of the state object.public interface CommandLogger<S extends State>
| Modifier and Type | Method and Description |
|---|---|
void |
onCommandHandlerError(Throwable error,
Command command,
Event... events)
Called when an error occurs during the handling of a command.
|
void |
onCommandHandlerResult(Command command,
Event... events)
Called when a command handler returns a result.
|
void onCommandHandlerError(Throwable error, Command command, Event... events)
error - The error that occurred.command - The command that was handled.events - The resulting event(s). Note: command handlers are not required to produce
events.Copyright © 2016 Cooking Fox. All rights reserved.