rejectedReceipt

fun rejectedReceipt(command: Command<*>, executionId: ExecutionId, code: String, message: String = code, commandType: String = commandTypeOf(command)): CommandReceipt.Rejected<Any>

The rejection of command with code and message, as the runtime hands it to the @OnRejected handler of the saga whose execution executionId derived the command: for ProcessorSpec.whenRejected.