rejectedResult

fun rejectedResult(command: Command<*>, code: String, message: String = code, violations: List<Violation> = emptyList(), extensions: Map<String, Any?> = emptyMap()): CommandResult

The result a target answers a synchronous call of command with when it refused it with code and message, the fields the command broke (violations) and the rejection's structured extensions.