reject
fun reject(code: String, message: String, events: List<Any> = emptyList(), extensions: Map<String, Any?> = emptyMap()): Decision
Rejects the command with code, a human-readable message, and the structured extensions a client reads instead of parsing the message (Rejection.extensions), appending the events it carries (Rejected). A code without a dot is the local name of a code of the deciding aggregate, which the kernel qualifies as context.aggregate.code. The framework's codes (wow.*) are not a domain's to use (Rejection.of).